Skip to content

Commit d678f79

Browse files
committed
test(angular): Catch unknown errors
1 parent bd50dac commit d678f79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/angular/src/lib/auth/forms/mfa/sms-multi-factor-enrollment-form.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ describe("<fui-sms-multi-factor-enrollment-form />", () => {
363363
fixture.detectChanges();
364364

365365
expect(
366-
screen.getByText("User must be authenticated to enroll with multi-factor authentication")
366+
screen.getByText("An unknown error occurred")
367367
).toBeInTheDocument();
368368
});
369369

packages/angular/src/lib/auth/forms/mfa/totp-multi-factor-enrollment-form.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ describe("<fui-totp-multi-factor-enrollment-form />", () => {
335335
fixture.detectChanges();
336336

337337
expect(
338-
screen.getByText("User must be authenticated to enroll with multi-factor authentication")
338+
screen.getByText("An unknown error occurred")
339339
).toBeInTheDocument();
340340
});
341341

0 commit comments

Comments
 (0)