Skip to content

Commit 9fc3998

Browse files
committed
format
1 parent 68bf75c commit 9fc3998

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

src/e2e/fail-threshold-onpostbuild.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ describe('lighthousePlugin with failed threshold run (onPostBuild)', () => {
3434

3535
it('should output expected log content', async () => {
3636
const logs = [
37-
"Persisting Lighthouse cache...",
38-
"Lighthouse cache persisted",
37+
'Persisting Lighthouse cache...',
38+
'Lighthouse cache persisted',
3939
'Generating Lighthouse report. This may take a minute…',
4040
'Running Lighthouse on example/',
4141
'Serving and scanning site from directory example',

src/e2e/fixture/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mockUtils = {
99
cache: {
1010
save: jest.fn(),
1111
restore: jest.fn(),
12-
}
12+
},
1313
};
1414

1515
export default mockUtils;

src/e2e/mocks/puppeteer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const puppeteer = () =>
44
default: {
55
launch: () => ({
66
process: () => ({ spawnfile: 'path' }),
7-
close: () => Promise.resolve()
8-
})
7+
close: () => Promise.resolve(),
8+
}),
99
},
1010
};
1111
});

src/e2e/not-found-onpostbuild.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ describe('lighthousePlugin with single not-found run (onPostBuild)', () => {
2525

2626
it('should output expected log content', async () => {
2727
const logs = [
28-
"Persisting Lighthouse cache...",
29-
"Lighthouse cache persisted",
28+
'Persisting Lighthouse cache...',
29+
'Lighthouse cache persisted',
3030
'Generating Lighthouse report. This may take a minute…',
3131
'Running Lighthouse on example/this-page-does-not-exist',
3232
'Serving and scanning site from directory example',

src/e2e/success-onpostbuild.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ describe('lighthousePlugin with single report per run (onPostBuild)', () => {
2424

2525
it('should output expected log content', async () => {
2626
const logs = [
27-
"Persisting Lighthouse cache...",
28-
"Lighthouse cache persisted",
27+
'Persisting Lighthouse cache...',
28+
'Lighthouse cache persisted',
2929
'Generating Lighthouse report. This may take a minute…',
3030
'Running Lighthouse on example/',
3131
'Serving and scanning site from directory example',

src/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('lighthousePlugin plugin events', () => {
88
});
99
expect(events).toEqual({
1010
onPreBuild: expect.any(Function),
11-
onPostBuild: expect.any(Function)
11+
onPostBuild: expect.any(Function),
1212
});
1313
});
1414
});
@@ -19,7 +19,7 @@ describe('lighthousePlugin plugin events', () => {
1919
expect(events).toEqual({
2020
onPreBuild: expect.any(Function),
2121
onPostBuild: expect.any(Function),
22-
onSuccess: expect.any(Function)
22+
onSuccess: expect.any(Function),
2323
});
2424
});
2525
});

src/run-lighthouse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import chromeLauncher from 'chrome-launcher';
55

66
export const getBrowserPath = async () => {
77
const browser = await puppeteer.launch({
8-
headless: "new",
9-
args: ['--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
8+
headless: 'new',
9+
args: ['--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage'],
1010
});
1111
const path = browser.process().spawnfile;
1212
await browser.close();

0 commit comments

Comments
 (0)