diff options
author | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
commit | 6438df3a1e0fb944485cebf07976160184697d72 (patch) | |
tree | 00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /spec/frontend/gpg_badges_spec.js | |
parent | 42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff) | |
download | gitlab-ce-6438df3a1e0fb944485cebf07976160184697d72.tar.gz |
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/frontend/gpg_badges_spec.js')
-rw-r--r-- | spec/frontend/gpg_badges_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/gpg_badges_spec.js b/spec/frontend/gpg_badges_spec.js index 644b687aa19..7c1f83e577c 100644 --- a/spec/frontend/gpg_badges_spec.js +++ b/spec/frontend/gpg_badges_spec.js @@ -36,7 +36,7 @@ describe('GpgBadges', () => { mock.restore(); }); - it('does not make a request if there is no container element', done => { + it('does not make a request if there is no container element', (done) => { setFixtures(''); jest.spyOn(axios, 'get').mockImplementation(() => {}); @@ -48,13 +48,13 @@ describe('GpgBadges', () => { .catch(done.fail); }); - it('throws an error if the endpoint is missing', done => { + it('throws an error if the endpoint is missing', (done) => { setFixtures('<div class="js-signature-container"></div>'); jest.spyOn(axios, 'get').mockImplementation(() => {}); GpgBadges.fetch() .then(() => done.fail('Expected error to be thrown')) - .catch(error => { + .catch((error) => { expect(error.message).toBe('Missing commit signatures endpoint!'); expect(axios.get).not.toHaveBeenCalled(); }) @@ -62,7 +62,7 @@ describe('GpgBadges', () => { .catch(done.fail); }); - it('displays a loading spinner', done => { + it('displays a loading spinner', (done) => { mock.onGet(dummyUrl).replyOnce(200); GpgBadges.fetch() @@ -76,7 +76,7 @@ describe('GpgBadges', () => { .catch(done.fail); }); - it('replaces the loading spinner', done => { + it('replaces the loading spinner', (done) => { mock.onGet(dummyUrl).replyOnce(200, dummyResponse); GpgBadges.fetch() |