Skip to content

Commit

Permalink
test: fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus-Kuhn committed Nov 26, 2024
1 parent 2d58090 commit a6952cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime/test/transport/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe("Password-protected tokens", () => {
ephemeral: true,
passwordProtection: { password: "" }
});
expect(createResult).toBeAnError("PasswordProtectionCreationParameters.password :: Value is shorter than 1 characters", "error.runtime.requestDeserialization");
expect(createResult).toBeAnError("password must NOT have fewer than 1 characters", "error.runtime.requestDeserialization");
});

test("validation error when creating a token with an invalid PIN", async () => {
Expand Down Expand Up @@ -247,7 +247,7 @@ describe("Password-protected tokens for files", () => {
fileId,
passwordProtection: { password: "" }
});
expect(createResult).toBeAnError("PasswordProtectionCreationParameters.password :: Value is shorter than 1 characters", "error.runtime.requestDeserialization");
expect(createResult).toBeAnError("password must NOT have fewer than 1 characters", "error.runtime.requestDeserialization");
});

test("validation error when creating a token with an invalid PIN", async () => {
Expand Down Expand Up @@ -325,7 +325,7 @@ describe("Password-protected tokens for unprotected templates", () => {
templateId,
passwordProtection: { password: "" }
});
expect(createResult).toBeAnError("PasswordProtectionCreationParameters.password :: Value is shorter than 1 characters", "error.runtime.requestDeserialization");
expect(createResult).toBeAnError("password must NOT have fewer than 1 characters", "error.runtime.requestDeserialization");
});

test("validation error when creating a token with an invalid PIN", async () => {
Expand Down

0 comments on commit a6952cf

Please sign in to comment.