summaryrefslogtreecommitdiff
path: root/spec/javascripts/diffs/mock_data/diff_with_commit.js
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2018-09-26 08:28:50 +0000
committerPhil Hughes <me@iamphill.com>2018-09-26 08:28:50 +0000
commitf3901842493c58faba71ad0812bf3102790a1b9f (patch)
treef30d0f4c67e80ec8fd591fa43b0b9b59998423c7 /spec/javascripts/diffs/mock_data/diff_with_commit.js
parentc7fcb01b8adf988e2e10e63979507d99bedba163 (diff)
downloadgitlab-ce-f3901842493c58faba71ad0812bf3102790a1b9f.tar.gz
Resolve "Commit details are not displayed when reviewing an MR commit by commit"
Diffstat (limited to 'spec/javascripts/diffs/mock_data/diff_with_commit.js')
-rw-r--r--spec/javascripts/diffs/mock_data/diff_with_commit.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/javascripts/diffs/mock_data/diff_with_commit.js b/spec/javascripts/diffs/mock_data/diff_with_commit.js
new file mode 100644
index 00000000000..98393a20583
--- /dev/null
+++ b/spec/javascripts/diffs/mock_data/diff_with_commit.js
@@ -0,0 +1,12 @@
+import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
+
+const FIXTURE = 'merge_request_diffs/with_commit.json';
+
+preloadFixtures(FIXTURE);
+
+export default function getDiffWithCommit() {
+ return convertObjectPropsToCamelCase(
+ getJSONFixture(FIXTURE),
+ { deep: true },
+ );
+}