Skip to content

Commit 943e397

Browse files
committed
test: fix allowed-hosts test
1 parent ee29b46 commit 943e397

9 files changed

+9
-13
lines changed

test/e2e/__snapshots__/allowed-hosts.test.js/allowed-hosts-check-host-headers-should-allow-hosts-in-allowedHosts-response-status-snap.webpack5

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/e2e/__snapshots__/allowed-hosts.test.js/allowed-hosts-check-host-headers-should-allow-hosts-that-pass-a-wildcard-in-allowedHosts-response-status-snap.webpack5

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/e2e/__snapshots__/allowed-hosts.test.js/allowed-hosts-check-host-headers-should-always-allow-any-host-if-options-allowedHosts-is-all-response-status-snap.webpack5

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/e2e/__snapshots__/allowed-hosts.test.js/allowed-hosts-check-host-headers-should-always-allow-localhost-if-options-allowedHosts-is-auto-response-status-snap.webpack5

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/e2e/__snapshots__/allowed-hosts.test.js/allowed-hosts-check-host-headers-should-always-allow-localhost-subdomain-if-options-allowedHosts-is-auto-response-status-snap.webpack5

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

test/e2e/__snapshots__/allowed-hosts.test.js/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-snap.webpack5

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/e2e/allowed-hosts.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ test.describe(
12521252
throw new Error("Validation didn't fail");
12531253
}
12541254

1255-
expect(response.status()).toMatchSnapshotWithArray("response status");
1255+
expect(response.status()).toBe(200);
12561256
expect(
12571257
consoleMessages.map((message) => message.text()),
12581258
).toMatchSnapshotWithArray("console messages");
@@ -1291,7 +1291,7 @@ test.describe(
12911291
throw new Error("Validation didn't fail");
12921292
}
12931293

1294-
expect(response.status()).toMatchSnapshotWithArray("response status");
1294+
expect(response.status()).toBe(200);
12951295
expect(
12961296
consoleMessages.map((message) => message.text()),
12971297
).toMatchSnapshotWithArray("console messages");
@@ -1344,7 +1344,7 @@ test.describe(
13441344
throw new Error("Validation didn't fail");
13451345
}
13461346

1347-
expect(response.status()).toMatchSnapshotWithArray("response status");
1347+
expect(response.status()).toBe(200);
13481348
expect(
13491349
consoleMessages.map((message) => message.text()),
13501350
).toMatchSnapshotWithArray("console messages");
@@ -1387,7 +1387,7 @@ test.describe(
13871387
throw new Error("Validation didn't fail");
13881388
}
13891389

1390-
expect(response.status()).toMatchSnapshotWithArray("response status");
1390+
expect(response.status()).toBe(200);
13911391
expect(
13921392
consoleMessages.map((message) => message.text()),
13931393
).toMatchSnapshotWithArray("console messages");
@@ -1425,7 +1425,7 @@ test.describe(
14251425
throw new Error("Validation didn't fail");
14261426
}
14271427

1428-
expect(response.status()).toMatchSnapshotWithArray("response status");
1428+
expect(response.status()).toBe(200);
14291429
expect(
14301430
consoleMessages.map((message) => message.text()),
14311431
).toMatchSnapshotWithArray("console messages");
@@ -1463,7 +1463,7 @@ test.describe(
14631463
}
14641464
});
14651465

1466-
expect(response.status()).toMatchSnapshotWithArray("response status");
1466+
expect(response.status()).toBe(200);
14671467
expect(
14681468
consoleMessages.map((message) => message.text()),
14691469
).toMatchSnapshotWithArray("console messages");
@@ -1511,7 +1511,7 @@ test.describe(
15111511
}
15121512
});
15131513

1514-
expect(response.status()).toMatchSnapshotWithArray("response status");
1514+
expect(response.status()).toBe(200);
15151515
expect(
15161516
consoleMessages.map((message) => message.text()),
15171517
).toMatchSnapshotWithArray("console messages");

0 commit comments

Comments
 (0)