Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 2, 2021
1 parent 699d65f commit dfeaedd
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 40 deletions.
30 changes: 15 additions & 15 deletions test/e2e/__snapshots__/magic-html.test.js.snap.webpack4
@@ -1,18 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

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

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

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"`;
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"`;

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

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

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

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

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"`;
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"`;

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

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

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

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

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"`;
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"`;

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

exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response text 1`] = `
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\">
<head>
Expand Down
44 changes: 22 additions & 22 deletions test/e2e/__snapshots__/magic-html.test.js.snap.webpack5
@@ -1,18 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

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

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

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"`;
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"`;

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

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

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

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

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"`;
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"`;

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

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

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

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

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"`;
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"`;

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

exports[`magicHtml option disabled filename bundle.other.js should handle GET request to magic async html (/bundle.other): response text 1`] = `
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response text 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\">
<head>
<meta charset=\\"utf-8\\">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /bundle.other</pre>
<pre>Cannot GET /bundle</pre>
</body>
</html>
"
`;

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

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

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"`;
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"`;

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

exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response text 1`] = `
exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\">
<head>
<meta charset=\\"utf-8\\">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /bundle</pre>
<pre>Cannot GET /bundle.other</pre>
</body>
</html>
"
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/magic-html.test.js
Expand Up @@ -794,7 +794,7 @@ describe("magicHtml option", () => {
await server.stop();
});

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

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

page
Expand Down Expand Up @@ -880,7 +880,7 @@ describe("magicHtml option", () => {
await server.stop();
});

it("should handle GET request to magic async html (/bundle.other)", async () => {
it("should not handle GET request to magic async html (/bundle.other)", async () => {
page
.on("console", (message) => {
consoleMessages.push(message);
Expand Down

0 comments on commit dfeaedd

Please sign in to comment.