Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Jul 17, 2024
1 parent e432ae0 commit fc6d498
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/tests/lib/services/icp-accounts.services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ describe("icp-accounts.services", () => {
expect(spyToastError).toBeCalledWith({
labelKey: "error__account.create_subaccount",
err: new Error(en.error.missing_identity),
renderAsHtml: true,
renderAsHtml: false,
});

resetIdentity();
Expand Down Expand Up @@ -729,7 +729,7 @@ describe("icp-accounts.services", () => {
expect(spyToastError).toBeCalledWith({
labelKey: "error.rename_subaccount",
err: new Error(en.error.missing_identity),
renderAsHtml: true,
renderAsHtml: false,
});

resetIdentity();
Expand All @@ -748,7 +748,7 @@ describe("icp-accounts.services", () => {
expect(spyToastError).toBeCalled();
expect(spyToastError).toBeCalledWith({
labelKey: "error.rename_subaccount_no_account",
renderAsHtml: true,
renderAsHtml: false,
});

spyToastError.mockClear();
Expand All @@ -765,7 +765,7 @@ describe("icp-accounts.services", () => {
expect(spyToastError).toBeCalled();
expect(spyToastError).toBeCalledWith({
labelKey: "error.rename_subaccount_type",
renderAsHtml: true,
renderAsHtml: false,
});

spyToastError.mockClear();
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/tests/lib/services/icp-ledger.services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe("icp-ledger.services", () => {
expect(spyToastError).toBeCalled();
expect(spyToastError).toBeCalledWith({
labelKey: "error__ledger.unexpected_wallet",
renderAsHtml: true,
renderAsHtml: false,
});

spyToastError.mockRestore();
Expand Down Expand Up @@ -351,7 +351,7 @@ describe("icp-ledger.services", () => {
expect(spyToastError).toBeCalled();
expect(spyToastError).toBeCalledWith({
labelKey: "error__ledger.please_open",
renderAsHtml: true,
renderAsHtml: false,
});

expect(err).not.toBeUndefined();
Expand Down

0 comments on commit fc6d498

Please sign in to comment.