Skip to content

Commit 210ff8a

Browse files
committed
test: update api test
1 parent 943e397 commit 210ff8a

10 files changed

+8
-17
lines changed

test/e2e/__snapshots__/api.test.js/API-Invalidate-callback-should-use-the-default-noop-callback-when-invalidate-is-called-without-any-callback-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Invalidate-callback-should-use-the-provided-callback-function-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Server-checkHostHeader-should-allow-URLs-with-scheme-for-checking-origin-when-the-option-client-webSocketURL-is-object-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Server-getFreePort-should-retry-finding-the-port-for-up-to-defaultPortRetry-times-number-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Server-getFreePort-should-retry-finding-the-port-for-up-to-defaultPortRetry-times-string-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Server-getFreePort-should-retry-finding-the-port-when-serial-ports-are-busy-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Server-getFreePort-should-return-the-port-when-the-port-is-null-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-Server-getFreePort-should-return-the-port-when-the-port-is-undefined-response-status-snap.webpack5

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

test/e2e/__snapshots__/api.test.js/API-WEBPACK-SERVE-environment-variable-should-be-present-response-status-snap.webpack5

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

test/e2e/api.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ test.describe(
348348
});
349349

350350
sinon.assert.calledOnce(callback);
351-
expect(response.status()).toMatchSnapshotWithArray("response status");
351+
expect(response.status()).toBe(200);
352352

353353
expect(
354354
consoleMessages.map((message) => message.text()),
@@ -374,7 +374,7 @@ test.describe(
374374
});
375375

376376
sinon.assert.calledOnce(callback);
377-
expect(response.status()).toMatchSnapshotWithArray("response status");
377+
expect(response.status()).toBe(200);
378378

379379
expect(
380380
consoleMessages.map((message) => message.text()),
@@ -485,7 +485,7 @@ test.describe(
485485
},
486486
);
487487

488-
expect(response.status()).toMatchSnapshotWithArray("response status");
488+
expect(response.status()).toBe(200);
489489

490490
expect(
491491
consoleMessages.map((message) => message.text()),
@@ -524,7 +524,7 @@ test.describe(
524524
waitUntil: "networkidle0",
525525
});
526526

527-
expect(response.status()).toMatchSnapshotWithArray("response status");
527+
expect(response.status()).toBe(200);
528528

529529
expect(
530530
consoleMessages.map((message) => message.text()),
@@ -561,7 +561,7 @@ test.describe(
561561
waitUntil: "networkidle0",
562562
});
563563

564-
expect(response.status()).toMatchSnapshotWithArray("response status");
564+
expect(response.status()).toBe(200);
565565

566566
expect(
567567
consoleMessages.map((message) => message.text()),
@@ -598,7 +598,7 @@ test.describe(
598598
waitUntil: "networkidle0",
599599
});
600600

601-
expect(response.status()).toMatchSnapshotWithArray("response status");
601+
expect(response.status()).toBe(200);
602602

603603
expect(
604604
consoleMessages.map((message) => message.text()),
@@ -639,7 +639,7 @@ test.describe(
639639
},
640640
);
641641

642-
expect(response.status()).toMatchSnapshotWithArray("response status");
642+
expect(response.status()).toBe(200);
643643

644644
expect(
645645
consoleMessages.map((message) => message.text()),
@@ -764,7 +764,7 @@ test.describe(
764764

765765
expect(webSocketRequests[0].url).toMatchSnapshotWithArray("url");
766766

767-
expect(response.status()).toMatchSnapshotWithArray("response status");
767+
expect(response.status()).toBe(200);
768768

769769
expect(
770770
// net::ERR_NAME_NOT_RESOLVED can be multiple times

0 commit comments

Comments
 (0)