summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-15 11:12:13 +0100
committerPhil Hughes <me@iamphill.com>2018-06-15 11:19:35 +0100
commit3530274b13ec4f20731f9f98ea94dabe1494072d (patch)
tree5400c31eaf71f4f9740a4666259ab987a508b547 /spec
parente906be2f683f6170a5ee1d5b5f104ab0e08062d1 (diff)
downloadgitlab-ce-3530274b13ec4f20731f9f98ea94dabe1494072d.tar.gz
only return last_commit_sha in the JSONide-add-last-commit-id-to-api-call
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/ide/stores/modules/commit/actions_spec.js4
-rw-r--r--spec/javascripts/ide/stores/utils_spec.js8
2 files changed, 3 insertions, 9 deletions
diff --git a/spec/javascripts/ide/stores/modules/commit/actions_spec.js b/spec/javascripts/ide/stores/modules/commit/actions_spec.js
index 45101304a4c..133ad627f34 100644
--- a/spec/javascripts/ide/stores/modules/commit/actions_spec.js
+++ b/spec/javascripts/ide/stores/modules/commit/actions_spec.js
@@ -243,9 +243,7 @@ describe('IDE commit module actions', () => {
...file('changed'),
type: 'blob',
active: true,
- lastCommit: {
- id: '123456789',
- },
+ lastCommitSha: '123456789',
};
store.state.stagedFiles.push(f);
store.state.changedFiles = [
diff --git a/spec/javascripts/ide/stores/utils_spec.js b/spec/javascripts/ide/stores/utils_spec.js
index 3f06f287ba9..a7bd443af51 100644
--- a/spec/javascripts/ide/stores/utils_spec.js
+++ b/spec/javascripts/ide/stores/utils_spec.js
@@ -76,9 +76,7 @@ describe('Multi-file store utils', () => {
...file('staged'),
path: 'staged',
content: 'updated file content',
- lastCommit: {
- id: '123456789',
- },
+ lastCommitSha: '123456789',
},
{
...file('newFile'),
@@ -86,9 +84,7 @@ describe('Multi-file store utils', () => {
tempFile: true,
content: 'new file content',
base64: true,
- lastCommit: {
- id: '123456789',
- },
+ lastCommitSha: '123456789',
},
],
currentBranchId: 'master',