diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2018-09-26 08:28:50 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-09-26 08:28:50 +0000 |
commit | f3901842493c58faba71ad0812bf3102790a1b9f (patch) | |
tree | f30d0f4c67e80ec8fd591fa43b0b9b59998423c7 /spec/javascripts/diffs/mock_data/diff_with_commit.js | |
parent | c7fcb01b8adf988e2e10e63979507d99bedba163 (diff) | |
download | gitlab-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.js | 12 |
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 }, + ); +} |