From 6618cf2684d545b472aca6c74c08387c2f4d862c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20J=C3=A4ggi?= Date: Sat, 2 Dec 2023 14:41:22 +0100 Subject: [PATCH] chore: fix test --- test/audits/cwv.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/audits/cwv.test.js b/test/audits/cwv.test.js index 5534ee58..357f6028 100644 --- a/test/audits/cwv.test.js +++ b/test/audits/cwv.test.js @@ -60,6 +60,11 @@ describe('Index Tests', () => { }; }); + afterEach(() => { + nock.cleanAll(); + sinon.restore(); + }); + it('fetch cwv for base url > process > send results', async () => { nock('https://adobe.com') .get('/') @@ -96,7 +101,7 @@ describe('Index Tests', () => { }); it('getRUMUrl adds scheme to urls without a scheme', async () => { - nock('http://space.cat') + nock('https://space.cat') .get('/') .reply(200);