diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-12-02 15:26:06 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-12-02 15:26:06 +0000 |
commit | 76abe0eded9a7b52c5d22ef1cbbecbb9ee700ed4 (patch) | |
tree | 63a3182ccae15c2d6f0d1a1633f0598ab0d36c4d /spec/javascripts/vue_common_components/commit_spec.js.es6 | |
parent | a1556200421f8e55fe1999a004694831553321dc (diff) | |
download | gitlab-ce-76abe0eded9a7b52c5d22ef1cbbecbb9ee700ed4.tar.gz |
Change ref property to commitRef
Diffstat (limited to 'spec/javascripts/vue_common_components/commit_spec.js.es6')
-rw-r--r-- | spec/javascripts/vue_common_components/commit_spec.js.es6 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/javascripts/vue_common_components/commit_spec.js.es6 b/spec/javascripts/vue_common_components/commit_spec.js.es6 index b1dbc8bd5fa..8b32b2c5cf7 100644 --- a/spec/javascripts/vue_common_components/commit_spec.js.es6 +++ b/spec/javascripts/vue_common_components/commit_spec.js.es6 @@ -10,7 +10,7 @@ describe('Commit component', () => { el: document.querySelector('.test-commit-container'), propsData: { tag: false, - ref: { + commitRef: { name: 'master', ref_url: 'http://localhost/namespace2/gitlabhq/tree/master', }, @@ -34,7 +34,7 @@ describe('Commit component', () => { props = { tag: true, - ref: { + commitRef: { name: 'master', ref_url: 'http://localhost/namespace2/gitlabhq/tree/master', }, @@ -59,11 +59,11 @@ describe('Commit component', () => { }); it('should render a link to the ref url', () => { - expect(component.$el.querySelector('.branch-name').getAttribute('href')).toEqual(props.ref.ref_url); + expect(component.$el.querySelector('.branch-name').getAttribute('href')).toEqual(props.commitRef.ref_url); }); it('should render the ref name', () => { - expect(component.$el.querySelector('.branch-name').textContent).toContain(props.ref.name); + expect(component.$el.querySelector('.branch-name').textContent).toContain(props.commitRef.name); }); it('should render the commit short sha with a link to the commit url', () => { @@ -103,7 +103,7 @@ describe('Commit component', () => { fixture.set('<div class="test-commit-container"></div>'); props = { tag: false, - ref: { + commitRef: { name: 'master', ref_url: 'http://localhost/namespace2/gitlabhq/tree/master', }, |