Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Dec 18, 2024
1 parent 94075b0 commit 18df945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/frontend/src/utils/iiConnection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe("Connection.login", () => {
}
});

it("connection exludes rpId when user cancels", async () => {
it("connection excludes rpId when user cancels", async () => {
// This one would fail because it's not the device the user is using at the moment.
const currentOriginDevice: DeviceData = createMockDevice(currentOrigin);
const currentOriginCredentialData =
Expand All @@ -193,7 +193,7 @@ describe("Connection.login", () => {
failSign = true;
const firstLoginResult = await connection.login(BigInt(12345));

expect(firstLoginResult.kind).toBe("webAuthnFailed");
expect(firstLoginResult.kind).toBe("possiblyWrongRPID");
expect(MultiWebAuthnIdentity.fromCredentials).toHaveBeenCalledTimes(1);
expect(MultiWebAuthnIdentity.fromCredentials).toHaveBeenCalledWith(
expect.arrayContaining([
Expand Down Expand Up @@ -327,7 +327,7 @@ describe("Connection.login", () => {
}
});

it("connection does not exlud rpId when user cancels", async () => {
it("connection does not exclude rpId when user cancels", async () => {
const currentOriginDevice: DeviceData = createMockDevice(currentOrigin);
const currentOriginCredentialData =
convertToCredentialData(currentOriginDevice);
Expand Down Expand Up @@ -427,7 +427,7 @@ describe("Connection.login", () => {
}
});

it("connection does not exlud rpId when user cancels", async () => {
it("connection does not exclude rpId when user cancels", async () => {
const currentOriginDevice: DeviceData = createMockDevice(currentOrigin);
const currentOriginCredentialData =
convertToCredentialData(currentOriginDevice);
Expand Down

0 comments on commit 18df945

Please sign in to comment.