diff options
Diffstat (limited to 'spec/frontend/releases')
-rw-r--r-- | spec/frontend/releases/components/release_block_spec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/frontend/releases/components/release_block_spec.js b/spec/frontend/releases/components/release_block_spec.js index 4be5d500fd9..229d3799ee1 100644 --- a/spec/frontend/releases/components/release_block_spec.js +++ b/spec/frontend/releases/components/release_block_spec.js @@ -12,7 +12,6 @@ describe('Release block', () => { propsData: { release: releaseProp, }, - sync: false, }); }; @@ -37,10 +36,16 @@ describe('Release block', () => { it('renders commit sha', () => { expect(wrapper.text()).toContain(release.commit.short_id); + + wrapper.setProps({ release: { ...release, commit_path: '/commit/example' } }); + expect(wrapper.find('a[href="/commit/example"]').exists()).toBe(true); }); it('renders tag name', () => { expect(wrapper.text()).toContain(release.tag_name); + + wrapper.setProps({ release: { ...release, tag_path: '/tag/example' } }); + expect(wrapper.find('a[href="/tag/example"]').exists()).toBe(true); }); it('renders release date', () => { |