Skip to content

Commit a4da8e8

Browse files
test: fix
1 parent b6bb50c commit a4da8e8

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

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

Lines changed: 4 additions & 4 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,22 +62,22 @@ 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

6969
exports[`Built in routes with simple config should handles GET request to sockjs bundle: console messages 1`] = `[]`;
7070

7171
exports[`Built in routes with simple config should handles GET request to sockjs bundle: page errors 1`] = `[]`;
7272

73-
exports[`Built in routes with simple config should handles GET request to sockjs bundle: response headers content-type 1`] = `"application/javascript; charset=UTF-8"`;
73+
exports[`Built in routes with simple config should handles GET request to sockjs bundle: response headers content-type 1`] = `"text/javascript; charset=UTF-8"`;
7474

7575
exports[`Built in routes with simple config should handles GET request to sockjs bundle: response status 1`] = `200`;
7676

7777
exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: console messages 1`] = `[]`;
7878

7979
exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: page errors 1`] = `[]`;
8080

81-
exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: response headers content-type 1`] = `"application/javascript; charset=UTF-8"`;
81+
exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: response headers content-type 1`] = `"text/javascript; charset=UTF-8"`;
8282

8383
exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: response status 1`] = `200`;

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)