summaryrefslogtreecommitdiff
path: root/spec/javascripts/diffs/components/commit_widget_spec.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-11-09 19:48:41 +0000
committerPhil Hughes <me@iamphill.com>2018-11-14 19:16:46 +0000
commit234563ba30d759870cb33d479116becb85e06eca (patch)
treefc9f553066f2d6a9ba8be7af20b181866750d246 /spec/javascripts/diffs/components/commit_widget_spec.js
parent63b4b4b2688fa4f068772026536b2250bce39070 (diff)
downloadgitlab-ce-234563ba30d759870cb33d479116becb85e06eca.tar.gz
Made diff & note data consistent
This caused many pain points when working with it. Part of the data was camel cased the other snake case. Other parts where snake case & then getting converted in components, this conversion has the potential for leaking memory. This changes that & makes it consistent with what it returned from the API, snake case.
Diffstat (limited to 'spec/javascripts/diffs/components/commit_widget_spec.js')
-rw-r--r--spec/javascripts/diffs/components/commit_widget_spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/diffs/components/commit_widget_spec.js b/spec/javascripts/diffs/components/commit_widget_spec.js
index 951eb57255d..2b60bd232ed 100644
--- a/spec/javascripts/diffs/components/commit_widget_spec.js
+++ b/spec/javascripts/diffs/components/commit_widget_spec.js
@@ -19,6 +19,6 @@ describe('diffs/components/commit_widget', () => {
const commitElement = vm.$el.querySelector('li.commit');
expect(commitElement).not.toBeNull();
- expect(commitElement).toContainText(commit.shortId);
+ expect(commitElement).toContainText(commit.short_id);
});
});