diff options
Diffstat (limited to 'spec/frontend/repository/components/last_commit_spec.js')
-rw-r--r-- | spec/frontend/repository/components/last_commit_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/repository/components/last_commit_spec.js b/spec/frontend/repository/components/last_commit_spec.js index a5bfeb08fe4..c14a7f0e061 100644 --- a/spec/frontend/repository/components/last_commit_spec.js +++ b/spec/frontend/repository/components/last_commit_spec.js @@ -11,12 +11,12 @@ function createCommitData(data = {}) { title: 'Commit title', titleHtml: 'Commit title', message: 'Commit message', - webUrl: 'https://test.com/commit/123', + webPath: '/commit/123', authoredDate: '2019-01-01', author: { name: 'Test', avatarUrl: 'https://test.com', - webUrl: 'https://test.com/test', + webPath: '/test', }, pipeline: { detailedStatus: { @@ -108,7 +108,7 @@ describe('Repository last commit component', () => { }); it('does not render description expander when description is null', () => { - factory(createCommitData({ description: null })); + factory(createCommitData({ descriptionHtml: null })); return vm.vm.$nextTick(() => { expect(vm.find('.text-expander').exists()).toBe(false); @@ -117,7 +117,7 @@ describe('Repository last commit component', () => { }); it('expands commit description when clicking expander', () => { - factory(createCommitData({ description: 'Test description' })); + factory(createCommitData({ descriptionHtml: 'Test description' })); return vm.vm .$nextTick() |