Skip to content

Commit a341622

Browse files
authored
test: enable skipped allowedHosts test case (#4177)
1 parent efec2f5 commit a341622

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

test/e2e/__snapshots__/allowed-hosts.test.js.snap.webpack4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ exports[`allowed hosts check host headers should always allow value from the \`h
3030

3131
exports[`allowed hosts check host headers should always allow value from the \`host\` options if options.allowedHosts is auto: response status 1`] = `200`;
3232

33+
exports[`allowed hosts check host headers should always allow value of the \`host\` option from the \`client.webSocketURL\` option if options.allowedHosts is auto: console messages 1`] = `Array []`;
34+
35+
exports[`allowed hosts check host headers should always allow value of the \`host\` option from the \`client.webSocketURL\` option if options.allowedHosts is auto: page errors 1`] = `Array []`;
36+
37+
exports[`allowed hosts check host headers should always allow value of the \`host\` option from the \`client.webSocketURL\` option if options.allowedHosts is auto: response status 1`] = `200`;
38+
3339
exports[`allowed hosts should connect web socket client using "[::1] host to web socket server with the "auto" value ("sockjs"): console messages 1`] = `
3440
Array [
3541
"[HMR] Waiting for update signal from WDS...",

test/e2e/__snapshots__/allowed-hosts.test.js.snap.webpack5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ exports[`allowed hosts check host headers should always allow value from the \`h
3030

3131
exports[`allowed hosts check host headers should always allow value from the \`host\` options if options.allowedHosts is auto: response status 1`] = `200`;
3232

33+
exports[`allowed hosts check host headers should always allow value of the \`host\` option from the \`client.webSocketURL\` option if options.allowedHosts is auto: console messages 1`] = `Array []`;
34+
35+
exports[`allowed hosts check host headers should always allow value of the \`host\` option from the \`client.webSocketURL\` option if options.allowedHosts is auto: page errors 1`] = `Array []`;
36+
37+
exports[`allowed hosts check host headers should always allow value of the \`host\` option from the \`client.webSocketURL\` option if options.allowedHosts is auto: response status 1`] = `200`;
38+
3339
exports[`allowed hosts should connect web socket client using "[::1] host to web socket server with the "auto" value ("sockjs"): console messages 1`] = `
3440
Array [
3541
"[HMR] Waiting for update signal from WDS...",

test/e2e/allowed-hosts.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ describe("allowed hosts", () => {
12521252
expect(pageErrors).toMatchSnapshot("page errors");
12531253
});
12541254

1255-
it.skip("should always allow value of the `host` option from the `client.webSocketURL` option if options.allowedHosts is auto", async () => {
1255+
it("should always allow value of the `host` option from the `client.webSocketURL` option if options.allowedHosts is auto", async () => {
12561256
const options = {
12571257
allowedHosts: "auto",
12581258
port: port1,

0 commit comments

Comments
 (0)