diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-15 06:08:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-15 06:08:55 +0300 |
commit | 4998f4e2d82409aaebb4a0fb6f85ad130819da57 (patch) | |
tree | 765abb9152a402ef8206e9d934385595659d4f0e /spec/javascripts/diffs | |
parent | c9bd888d38746a9bb73629681d8c393c3ec77275 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/diffs')
-rw-r--r-- | spec/javascripts/diffs/components/app_spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/diffs/components/app_spec.js b/spec/javascripts/diffs/components/app_spec.js index 2411fe8ad89..5f97182489e 100644 --- a/spec/javascripts/diffs/components/app_spec.js +++ b/spec/javascripts/diffs/components/app_spec.js @@ -77,6 +77,7 @@ describe('diffs/components/app', () => { beforeEach(done => { const fetchResolver = () => { store.state.diffs.retrievingBatches = false; + store.state.notes.discussions = 'test'; return Promise.resolve({ real_size: 100 }); }; spyOn(window, 'requestIdleCallback').and.callFake(fn => fn()); @@ -87,6 +88,7 @@ describe('diffs/components/app', () => { spyOn(wrapper.vm, 'setDiscussions'); spyOn(wrapper.vm, 'startRenderDiffsQueue'); spyOn(wrapper.vm, 'unwatchDiscussions'); + spyOn(wrapper.vm, 'unwatchRetrievingBatches'); store.state.diffs.retrievingBatches = true; store.state.diffs.diffFiles = []; wrapper.vm.$nextTick(done); @@ -240,6 +242,7 @@ describe('diffs/components/app', () => { expect(wrapper.vm.fetchDiffFilesBatch).not.toHaveBeenCalled(); expect(wrapper.vm.unwatchDiscussions).toHaveBeenCalled(); expect(wrapper.vm.diffFilesLength).toEqual(100); + expect(wrapper.vm.unwatchRetrievingBatches).toHaveBeenCalled(); done(); }); @@ -258,6 +261,7 @@ describe('diffs/components/app', () => { expect(wrapper.vm.fetchDiffFilesBatch).toHaveBeenCalled(); expect(wrapper.vm.unwatchDiscussions).toHaveBeenCalled(); expect(wrapper.vm.diffFilesLength).toEqual(100); + expect(wrapper.vm.unwatchRetrievingBatches).toHaveBeenCalled(); done(); }); }); @@ -274,6 +278,7 @@ describe('diffs/components/app', () => { expect(wrapper.vm.fetchDiffFilesBatch).toHaveBeenCalled(); expect(wrapper.vm.unwatchDiscussions).toHaveBeenCalled(); expect(wrapper.vm.diffFilesLength).toEqual(100); + expect(wrapper.vm.unwatchRetrievingBatches).toHaveBeenCalled(); done(); }); }); |