Skip to content

Commit

Permalink
feat: remove codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Oct 25, 2023
1 parent 3a2180a commit 0360407
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/psi-client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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,
Expand Down

0 comments on commit 0360407

Please sign in to comment.