Skip to content

Commit e17e676

Browse files
committed
fix: lint job
1 parent 9bc2602 commit e17e676

18 files changed

+367
-355
lines changed

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
expect: {
1616
toHaveScreenshot: {
1717
maxDiffPixelRatio: 0.1,
18-
}
18+
},
1919
},
2020
workers: 1,
2121
reporter: isCI ? "github" : "list",

test/e2e/history-api-fallback.test.js

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ test.describe("historyApiFallback option", () => {
5252
waitUntil: "networkidle0",
5353
});
5454

55-
expect(
56-
response.headers()["content-type"],
57-
).toMatchSnapshotWithArray("response headers");
55+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
56+
"response headers",
57+
);
5858

5959
expect(response.status()).toEqual(200);
6060

@@ -110,17 +110,15 @@ test.describe("historyApiFallback option", () => {
110110
waitUntil: "networkidle0",
111111
});
112112

113-
expect(
114-
response.headers()["content-type"])
115-
.toMatchSnapshotWithArray();
113+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray();
116114

117115
expect(response.status()).toEqual(200);
118116

119117
await expect(page).toHaveScreenshot();
120118

121119
expect(
122-
consoleMessages.map((message) => message.text()))
123-
.toMatchSnapshotWithArray("console messages");
120+
consoleMessages.map((message) => message.text()),
121+
).toMatchSnapshotWithArray("console messages");
124122

125123
expect(pageErrors).toMatchSnapshotWithArray("page errors");
126124
});
@@ -172,17 +170,17 @@ test.describe("historyApiFallback option", () => {
172170
waitUntil: "networkidle0",
173171
});
174172

175-
expect(
176-
response.headers()["content-type"])
177-
.toMatchSnapshotWithArray("content type");
173+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
174+
"content type",
175+
);
178176

179177
expect(response.status()).toEqual(200);
180178

181179
await expect(page).toHaveScreenshot();
182180

183181
expect(
184-
consoleMessages.map((message) => message.text()))
185-
.toMatchSnapshotWithArray("console messages");
182+
consoleMessages.map((message) => message.text()),
183+
).toMatchSnapshotWithArray("console messages");
186184

187185
expect(pageErrors).toMatchSnapshotWithArray("page errors");
188186
});
@@ -206,17 +204,17 @@ test.describe("historyApiFallback option", () => {
206204
},
207205
);
208206

209-
expect(
210-
response.headers()["content-type"])
211-
.toMatchSnapshotWithArray("content type");
207+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
208+
"content type",
209+
);
212210

213211
expect(response.status()).toEqual(200);
214212

215213
await expect(page).toHaveScreenshot();
216214

217215
expect(
218-
consoleMessages.map((message) => message.text()))
219-
.toMatchSnapshotWithArray("console messages");
216+
consoleMessages.map((message) => message.text()),
217+
).toMatchSnapshotWithArray("console messages");
220218

221219
expect(pageErrors).toMatchSnapshotWithArray("page errors");
222220
});
@@ -267,17 +265,17 @@ test.describe("historyApiFallback option", () => {
267265
waitUntil: "networkidle0",
268266
});
269267

270-
expect(
271-
response.headers()["content-type"])
272-
.toMatchSnapshotWithArray("content type");
268+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
269+
"content type",
270+
);
273271

274272
expect(response.status()).toEqual(200);
275273

276274
await expect(page).toHaveScreenshot();
277275

278276
expect(
279-
consoleMessages.map((message) => message.text()))
280-
.toMatchSnapshotWithArray("console messages");
277+
consoleMessages.map((message) => message.text()),
278+
).toMatchSnapshotWithArray("console messages");
281279

282280
expect(pageErrors).toMatchSnapshotWithArray("page errors");
283281
});
@@ -338,17 +336,17 @@ test.describe("historyApiFallback option", () => {
338336
waitUntil: "networkidle0",
339337
});
340338

341-
expect(
342-
response.headers()["content-type"])
343-
.toMatchSnapshotWithArray("content type");
339+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
340+
"content type",
341+
);
344342

345343
expect(response.status()).toEqual(200);
346344

347345
await expect(page).toHaveScreenshot();
348346

349347
expect(
350-
consoleMessages.map((message) => message.text()))
351-
.toMatchSnapshotWithArray("console messages");
348+
consoleMessages.map((message) => message.text()),
349+
).toMatchSnapshotWithArray("console messages");
352350

353351
expect(pageErrors).toMatchSnapshotWithArray("page errors");
354352
});
@@ -368,17 +366,17 @@ test.describe("historyApiFallback option", () => {
368366
waitUntil: "networkidle0",
369367
});
370368

371-
expect(
372-
response.headers()["content-type"])
373-
.toMatchSnapshotWithArray("content type");
369+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
370+
"content type",
371+
);
374372

375373
expect(response.status()).toEqual(200);
376374

377375
await expect(page).toHaveScreenshot();
378376

379377
expect(
380-
consoleMessages.map((message) => message.text()))
381-
.toMatchSnapshotWithArray("console messages");
378+
consoleMessages.map((message) => message.text()),
379+
).toMatchSnapshotWithArray("console messages");
382380

383381
expect(pageErrors).toMatchSnapshotWithArray("page errors");
384382
});
@@ -398,17 +396,17 @@ test.describe("historyApiFallback option", () => {
398396
waitUntil: "networkidle0",
399397
});
400398

401-
expect(
402-
response.headers()["content-type"])
403-
.toMatchSnapshotWithArray("content type");
399+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
400+
"content type",
401+
);
404402

405403
expect(response.status()).toEqual(200);
406404

407405
await expect(page).toHaveScreenshot();
408406

409407
expect(
410-
consoleMessages.map((message) => message.text()))
411-
.toMatchSnapshotWithArray("console messages");
408+
consoleMessages.map((message) => message.text()),
409+
).toMatchSnapshotWithArray("console messages");
412410

413411
expect(pageErrors).toMatchSnapshotWithArray("page errors");
414412
});
@@ -461,15 +459,16 @@ test.describe("historyApiFallback option", () => {
461459
waitUntil: "networkidle0",
462460
});
463461

464-
expect(
465-
response.headers()["content-type"])
466-
.toMatchSnapshotWithArray("content type");
462+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
463+
"content type",
464+
);
467465

468466
expect(response.status()).toEqual(200);
469467

470468
await expect(page).toHaveScreenshot();
471469

472-
sinon.assert.calledWith(consoleSpy,
470+
sinon.assert.calledWith(
471+
consoleSpy,
473472
"Rewriting",
474473
"GET",
475474
"/foo",
@@ -478,8 +477,8 @@ test.describe("historyApiFallback option", () => {
478477
);
479478

480479
expect(
481-
consoleMessages.map((message) => message.text()))
482-
.toMatchSnapshotWithArray("console messages");
480+
consoleMessages.map((message) => message.text()),
481+
).toMatchSnapshotWithArray("console messages");
483482

484483
expect(pageErrors).toMatchSnapshotWithArray("page errors");
485484
});
@@ -532,15 +531,16 @@ test.describe("historyApiFallback option", () => {
532531
waitUntil: "networkidle0",
533532
});
534533

535-
expect(
536-
response.headers()["content-type"])
537-
.toMatchSnapshotWithArray("content type");
534+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
535+
"content type",
536+
);
538537

539538
expect(response.status()).toEqual(200);
540539

541540
await expect(page).toHaveScreenshot();
542541

543-
sinon.assert.calledWith(consoleSpy,
542+
sinon.assert.calledWith(
543+
consoleSpy,
544544
"Rewriting",
545545
"GET",
546546
"/foo",
@@ -549,8 +549,8 @@ test.describe("historyApiFallback option", () => {
549549
);
550550

551551
expect(
552-
consoleMessages.map((message) => message.text()))
553-
.toMatchSnapshotWithArray("console messages");
552+
consoleMessages.map((message) => message.text()),
553+
).toMatchSnapshotWithArray("console messages");
554554

555555
expect(pageErrors).toMatchSnapshotWithArray("page errors");
556556
});
@@ -600,17 +600,17 @@ test.describe("historyApiFallback option", () => {
600600
waitUntil: "networkidle0",
601601
});
602602

603-
expect(
604-
response.headers()["content-type"])
605-
.toMatchSnapshotWithArray("content type");
603+
expect(response.headers()["content-type"]).toMatchSnapshotWithArray(
604+
"content type",
605+
);
606606

607607
expect(response.status()).toEqual(200);
608608

609609
await expect(page).toHaveScreenshot();
610610

611611
expect(
612-
consoleMessages.map((message) => message.text()))
613-
.toMatchSnapshotWithArray("console messages");
612+
consoleMessages.map((message) => message.text()),
613+
).toMatchSnapshotWithArray("console messages");
614614

615615
expect(pageErrors).toMatchSnapshotWithArray("page errors");
616616
});

0 commit comments

Comments
 (0)