Skip to content

Commit efe0aea

Browse files
test: fix
1 parent b6bb50c commit efe0aea

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

test/e2e/__snapshots__/built-in-routes.test.js.snap.webpack5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exports[`Built in routes with simple config should handle GET request to invalid
4646

4747
exports[`Built in routes with simple config should handle GET request to magic async chunk: console messages 1`] = `[]`;
4848

49-
exports[`Built in routes with simple config should handle GET request to magic async chunk: response headers content-type 1`] = `"application/javascript; charset=utf-8"`;
49+
exports[`Built in routes with simple config should handle GET request to magic async chunk: response headers content-type 1`] = `"text/javascript; charset=utf-8"`;
5050

5151
exports[`Built in routes with simple config should handle GET request to magic async chunk: response status 1`] = `200`;
5252

@@ -62,7 +62,7 @@ exports[`Built in routes with simple config should handle HEAD request to direct
6262

6363
exports[`Built in routes with simple config should handle HEAD request to magic async chunk: console messages 1`] = `[]`;
6464

65-
exports[`Built in routes with simple config should handle HEAD request to magic async chunk: response headers content-type 1`] = `"application/javascript; charset=utf-8"`;
65+
exports[`Built in routes with simple config should handle HEAD request to magic async chunk: response headers content-type 1`] = `"text/javascript; charset=utf-8"`;
6666

6767
exports[`Built in routes with simple config should handle HEAD request to magic async chunk: response status 1`] = `200`;
6868

test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`web socket server URL should not work and output disconnect wrong web socket URL ("sockjs"): console messages 1`] = `
44
[

test/e2e/range-header.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("'Range' header", () => {
2727

2828
expect(response.status).toBe(200);
2929
expect(response.headers["content-type"]).toBe(
30-
"application/javascript; charset=utf-8",
30+
"text/javascript; charset=utf-8",
3131
);
3232
expect(response.headers["accept-ranges"]).toBe("bytes");
3333

@@ -38,7 +38,7 @@ describe("'Range' header", () => {
3838

3939
expect(responseRange.status).toBe(206);
4040
expect(responseRange.headers["content-type"]).toBe(
41-
"application/javascript; charset=utf-8",
41+
"text/javascript; charset=utf-8",
4242
);
4343
expect(responseRange.headers["content-length"]).toBe("500");
4444
expect(responseRange.headers["content-range"]).toMatch(/^bytes 0-499\//);
@@ -51,7 +51,7 @@ describe("'Range' header", () => {
5151

5252
expect(response.status).toBe(200);
5353
expect(response.headers["content-type"]).toBe(
54-
"application/javascript; charset=utf-8",
54+
"text/javascript; charset=utf-8",
5555
);
5656
expect(response.headers["accept-ranges"]).toBe("bytes");
5757

@@ -61,7 +61,7 @@ describe("'Range' header", () => {
6161

6262
expect(responseRange.status).toBe(206);
6363
expect(responseRange.headers["content-type"]).toBe(
64-
"application/javascript; charset=utf-8",
64+
"text/javascript; charset=utf-8",
6565
);
6666
expect(responseRange.headers["content-length"]).toBe("500");
6767
expect(responseRange.headers["content-range"]).toMatch(/^bytes 0-499\//);
@@ -72,7 +72,7 @@ describe("'Range' header", () => {
7272

7373
expect(response.status).toBe(200);
7474
expect(response.headers["content-type"]).toBe(
75-
"application/javascript; charset=utf-8",
75+
"text/javascript; charset=utf-8",
7676
);
7777
expect(response.headers["accept-ranges"]).toBe("bytes");
7878

@@ -92,7 +92,7 @@ describe("'Range' header", () => {
9292

9393
expect(response.status).toBe(200);
9494
expect(response.headers["content-type"]).toBe(
95-
"application/javascript; charset=utf-8",
95+
"text/javascript; charset=utf-8",
9696
);
9797
expect(response.headers["accept-ranges"]).toBe("bytes");
9898

@@ -103,7 +103,7 @@ describe("'Range' header", () => {
103103

104104
expect(responseRange.status).toBe(200);
105105
expect(responseRange.headers["content-type"]).toBe(
106-
"application/javascript; charset=utf-8",
106+
"text/javascript; charset=utf-8",
107107
);
108108
expect(responseRange.text).toBe(responseContent);
109109
expect(responseRange.text).toHaveLength(responseContent.length);

0 commit comments

Comments
 (0)