From 03604076eeccb148f8772efe4338c40dced5d2d6 Mon Sep 17 00:00:00 2001 From: alinarublea Date: Wed, 25 Oct 2023 18:04:31 +0200 Subject: [PATCH] feat: remove codeql --- test/psi-client.test.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test/psi-client.test.js b/test/psi-client.test.js index 65e1c695..38c74a44 100644 --- a/test/psi-client.test.js +++ b/test/psi-client.test.js @@ -83,11 +83,14 @@ describe('PSIClient', () => { nock.cleanAll(); }); - xit('should run mobile strategy audit', async () => { + it('should run and desktop strategy audit', async () => { const mockResponse = { data: 'some mobile data' }; nock('https://www.googleapis.com') .get('/pagespeedonline/v5/runPagespeed?url=https%3A%2F%2FsomeUrl&key=test-api-key&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo') .reply(200, mockResponse); + nock('https://www.googleapis.com') + .get('/pagespeedonline/v5/runPagespeed?url=https%3A%2F%2FsomeUrl&key=test-api-key&strategy=desktop&category=performance&category=accessibility&category=best-practices&category=seo') + .reply(200, mockResponse); const audit = await client.runAudit('someUrl'); @@ -110,16 +113,6 @@ describe('PSIClient', () => { timing: undefined, userAgent: undefined, }); - }); - xit('should run desktop strategy audit', async () => { - const mockResponse = { data: 'some desktop data' }; - nock('https://www.googleapis.com') - .get('/pagespeedonline/v5/runPagespeed?url=https%3A%2F%2FsomeUrl&key=test-api-key&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo') - .reply(200, mockResponse); - - const audit = await client.runAudit('someUrl'); - - // Ensure the response structure is correct assert.deepStrictEqual(audit.result.desktop, { audits: { 'third-party-summary': undefined,