From 712188d9ed6a10e6a9caec0005da04bfc39a44ab Mon Sep 17 00:00:00 2001 From: Fernando Arias <farias@gitlab.com> Date: Wed, 24 Nov 2021 11:29:15 -0500 Subject: [PATCH] Apply unit test name suggestions * Adjust unit test names --- .../corpus_management/components/corpus_upload_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_spec.js b/ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_spec.js index e6fc512989d8d..0710d072f1691 100644 --- a/ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_spec.js +++ b/ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_spec.js @@ -43,7 +43,7 @@ describe('Corpus Upload', () => { }); describe('addCorpus mutation', () => { - it('called when the add button is clicked from the modal', async () => { + it('gets called when the add button is clicked from the modal', async () => { createComponent(); jest.spyOn(wrapper.vm, 'addCorpus').mockImplementation(() => {}); await wrapper.vm.$forceUpdate(); @@ -53,7 +53,7 @@ describe('Corpus Upload', () => { }); describe('resetCorpus mutation', () => { - it('called when the cancel button is clicked from the modal', async () => { + it('gets called when the cancel button is clicked from the modal', async () => { createComponent(); jest.spyOn(wrapper.vm, 'resetCorpus').mockImplementation(() => {}); await wrapper.vm.$forceUpdate(); @@ -61,7 +61,7 @@ describe('Corpus Upload', () => { expect(wrapper.vm.resetCorpus).toHaveBeenCalled(); }); - it('called when the upload form triggers a reset', async () => { + it('gets called when the upload form triggers a reset', async () => { createComponent(); jest.spyOn(wrapper.vm, 'resetCorpus').mockImplementation(() => {}); await wrapper.vm.$forceUpdate(); @@ -71,7 +71,7 @@ describe('Corpus Upload', () => { }); describe('uploadCorpus mutation', () => { - it('called when the upload file is clicked from the modal', async () => { + it('gets called when the upload file is clicked from the modal', async () => { createComponent(); jest.spyOn(wrapper.vm, 'beginFileUpload').mockImplementation(() => {}); await wrapper.vm.$forceUpdate(); -- GitLab