Skip to content

Commit 7a30c20

Browse files
committed
wip to squash
1 parent bdb779c commit 7a30c20

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/components/reset-password-check-email/tests/reset-password-check-email-integration.test.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ describe("Integration::reset password check email ", () => {
5151
app = await createApp();
5252
baseApi = process.env.FRONTEND_API_BASE_URL;
5353

54-
nock(baseApi).post(API_ENDPOINTS.RESET_PASSWORD_REQUEST).once().reply(204);
54+
nock(baseApi)
55+
.post(API_ENDPOINTS.RESET_PASSWORD_REQUEST)
56+
.once()
57+
.reply(200, { mfaMethods: [] });
5558

5659
await request(
5760
app,
@@ -74,7 +77,15 @@ describe("Integration::reset password check email ", () => {
7477
});
7578

7679
it("should return reset password check email page", async () => {
77-
nock(baseApi).post(API_ENDPOINTS.RESET_PASSWORD_REQUEST).once().reply(200, { mfaMethods: buildMfaMethods({ redactedPhoneNumber: "123", id: "test-id"})});
80+
nock(baseApi)
81+
.post(API_ENDPOINTS.RESET_PASSWORD_REQUEST)
82+
.once()
83+
.reply(200, {
84+
mfaMethods: buildMfaMethods({
85+
redactedPhoneNumber: "123",
86+
id: "test-id",
87+
}),
88+
});
7889
await request(app, (test) =>
7990
test.get(PATH_NAMES.RESET_PASSWORD_CHECK_EMAIL).expect(200)
8091
);

0 commit comments

Comments
 (0)