Skip to content

Commit 6211be7

Browse files
committed
fix: typo
1 parent e1db1d5 commit 6211be7

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

test/e2e/__snapshots__/magic-html.test.js.snap.webpack4

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): console messages 1`] = `
3+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): console messages 1`] = `
44
Array [
55
"Failed to load resource: the server responded with a status of 404 (Not Found)",
66
]
77
`;
88

9-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
9+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
1010

11-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
11+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
1212

13-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): response status 1`] = `404`;
13+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): response status 1`] = `404`;
1414

15-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): response text 1`] = `
15+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): response text 1`] = `
1616
"<!DOCTYPE html>
1717
<html lang=\\"en\\">
1818
<head>
@@ -26,33 +26,33 @@ exports[`magicHtml option disabled filename bundle.js should handle GET request
2626
"
2727
`;
2828

29-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): console messages 1`] = `
29+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): console messages 1`] = `
3030
Array [
3131
"Failed to load resource: the server responded with a status of 404 (Not Found)",
3232
]
3333
`;
3434

35-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): page errors 1`] = `Array []`;
35+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): page errors 1`] = `Array []`;
3636

37-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
37+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
3838

39-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): response status 1`] = `404`;
39+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response status 1`] = `404`;
4040

41-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): response text 1`] = `""`;
41+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response text 1`] = `""`;
4242

43-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): console messages 1`] = `
43+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): console messages 1`] = `
4444
Array [
4545
"Failed to load resource: the server responded with a status of 404 (Not Found)",
4646
]
4747
`;
4848

49-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`;
49+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`;
5050

51-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response headers content-type 1`] = `"text/html; charset=utf-8"`;
51+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response headers content-type 1`] = `"text/html; charset=utf-8"`;
5252

53-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response status 1`] = `404`;
53+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response status 1`] = `404`;
5454

55-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response text 1`] = `
55+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = `
5656
"<!DOCTYPE html>
5757
<html lang=\\"en\\">
5858
<head>

test/e2e/__snapshots__/magic-html.test.js.snap.webpack5

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): console messages 1`] = `
3+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): console messages 1`] = `
44
Array [
55
"Failed to load resource: the server responded with a status of 404 (Not Found)",
66
]
77
`;
88

9-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
9+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
1010

11-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
11+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
1212

13-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): response status 1`] = `404`;
13+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): response status 1`] = `404`;
1414

15-
exports[`magicHtml option disabled filename bundle.js should handle GET request to magic async html (/bundle): response text 1`] = `
15+
exports[`magicHtml option disabled filename bundle.js should not handle GET request to magic async html (/bundle): response text 1`] = `
1616
"<!DOCTYPE html>
1717
<html lang=\\"en\\">
1818
<head>
@@ -26,67 +26,67 @@ exports[`magicHtml option disabled filename bundle.js should handle GET request
2626
"
2727
`;
2828

29-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): console messages 1`] = `
29+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): console messages 1`] = `
3030
Array [
3131
"Failed to load resource: the server responded with a status of 404 (Not Found)",
3232
]
3333
`;
3434

35-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): page errors 1`] = `Array []`;
35+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): page errors 1`] = `Array []`;
3636

37-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
37+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
3838

39-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): response status 1`] = `404`;
39+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response status 1`] = `404`;
4040

41-
exports[`magicHtml option disabled filename bundle.js should handle HEAD request to magic async html (/bundle): response text 1`] = `""`;
41+
exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response text 1`] = `""`;
4242

43-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): console messages 1`] = `
43+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: console messages 1`] = `
4444
Array [
4545
"Failed to load resource: the server responded with a status of 404 (Not Found)",
4646
]
4747
`;
4848

49-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`;
49+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: page errors 1`] = `Array []`;
5050

51-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response headers content-type 1`] = `"text/html; charset=utf-8"`;
51+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response headers content-type 1`] = `"text/html; charset=utf-8"`;
5252

53-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response status 1`] = `404`;
53+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response status 1`] = `404`;
5454

55-
exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response text 1`] = `
55+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response text 1`] = `
5656
"<!DOCTYPE html>
5757
<html lang=\\"en\\">
5858
<head>
5959
<meta charset=\\"utf-8\\">
6060
<title>Error</title>
6161
</head>
6262
<body>
63-
<pre>Cannot GET /bundle.other</pre>
63+
<pre>Cannot GET /bundle</pre>
6464
</body>
6565
</html>
6666
"
6767
`;
6868

69-
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: console messages 1`] = `
69+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): console messages 1`] = `
7070
Array [
7171
"Failed to load resource: the server responded with a status of 404 (Not Found)",
7272
]
7373
`;
7474

75-
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: page errors 1`] = `Array []`;
75+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`;
7676

77-
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response headers content-type 1`] = `"text/html; charset=utf-8"`;
77+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response headers content-type 1`] = `"text/html; charset=utf-8"`;
7878

79-
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response status 1`] = `404`;
79+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response status 1`] = `404`;
8080

81-
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response text 1`] = `
81+
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = `
8282
"<!DOCTYPE html>
8383
<html lang=\\"en\\">
8484
<head>
8585
<meta charset=\\"utf-8\\">
8686
<title>Error</title>
8787
</head>
8888
<body>
89-
<pre>Cannot GET /bundle</pre>
89+
<pre>Cannot GET /bundle.other</pre>
9090
</body>
9191
</html>
9292
"

test/e2e/magic-html.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ describe("magicHtml option", () => {
794794
await server.stop();
795795
});
796796

797-
it("should handle GET request to magic async html (/bundle)", async () => {
797+
it("should not handle GET request to magic async html (/bundle)", async () => {
798798
page
799799
.on("console", (message) => {
800800
consoleMessages.push(message);
@@ -822,7 +822,7 @@ describe("magicHtml option", () => {
822822
expect(pageErrors).toMatchSnapshot("page errors");
823823
});
824824

825-
it("should handle HEAD request to magic async html (/bundle)", async () => {
825+
it("should not handle HEAD request to magic async html (/bundle)", async () => {
826826
await page.setRequestInterception(true);
827827

828828
page
@@ -880,7 +880,7 @@ describe("magicHtml option", () => {
880880
await server.stop();
881881
});
882882

883-
it("should handle GET request to magic async html (/bundle.other)", async () => {
883+
it("should not handle GET request to magic async html (/bundle.other)", async () => {
884884
page
885885
.on("console", (message) => {
886886
consoleMessages.push(message);

0 commit comments

Comments
 (0)