diff options
author | Max Winterstein <gitlab@winterstein.mx> | 2019-03-07 00:40:21 +0300 |
---|---|---|
committer | Max Winterstein <gitlab@winterstein.mx> | 2019-03-09 02:31:23 +0300 |
commit | fbf638a49446faae96dad4ad1538a010906f975a (patch) | |
tree | 6dd6e0ef7c92dde2bfb687823a61825f94c21562 /spec/javascripts/jobs | |
parent | eb6577d0ab695dacd1fd46d9b38e6a41be4788d2 (diff) |
Unify behaviour of 'Copy commit SHA to clipboard'
Diffstat (limited to 'spec/javascripts/jobs')
-rw-r--r-- | spec/javascripts/jobs/components/commit_block_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/jobs/components/commit_block_spec.js b/spec/javascripts/jobs/components/commit_block_spec.js index 98eba3ac976..c02f564d01a 100644 --- a/spec/javascripts/jobs/components/commit_block_spec.js +++ b/spec/javascripts/jobs/components/commit_block_spec.js @@ -9,6 +9,7 @@ describe('Commit block', () => { const props = { commit: { short_id: '1f0fb84f', + id: '1f0fb84fb6770d74d97eee58118fd3909cd4f48c', commit_path: 'commit/1f0fb84fb6770d74d97eee58118fd3909cd4f48c', title: 'Update README.md', }, @@ -42,7 +43,7 @@ describe('Commit block', () => { it('renders clipboard button', () => { expect(vm.$el.querySelector('button').getAttribute('data-clipboard-text')).toEqual( - props.commit.short_id, + props.commit.id, ); }); }); |