Skip to content

Commit

Permalink
fix: update tests according to new types
Browse files Browse the repository at this point in the history
  • Loading branch information
masterjanic committed Jun 1, 2024
1 parent 2014f49 commit b97b35c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/test/webauthn-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function prepareVerifyTest(
verified: true,
registrationInfo: {
counter: authenticator.counter,
credentialID: fromBase64(authenticator.credentialID),
credentialID: authenticator.credentialID,
credentialPublicKey: fromBase64(authenticator.credentialPublicKey),
credentialBackedUp: authenticator.credentialBackedUp,
// @ts-expect-error
Expand Down Expand Up @@ -547,7 +547,7 @@ describe("getRegistrationResponse", () => {
userName: user.email,
userDisplayName: user.name,
excludeCredentials: authenticators.map((a) => ({
id: fromBase64(a.credentialID),
id: a.credentialID,
type: "public-key",
transports: stringToTransports(a.transports),
})),
Expand Down Expand Up @@ -617,7 +617,7 @@ describe("getRegistrationResponse", () => {
userName: user.email,
userDisplayName: user.name,
excludeCredentials: authenticators.map((a) => ({
id: fromBase64(a.credentialID),
id: a.credentialID,
type: "public-key",
transports: stringToTransports(a.transports),
})),
Expand Down Expand Up @@ -739,7 +739,7 @@ describe("getAuthenticationResponse", () => {
...defaultWebAuthnConfig.authenticationOptions,
rpID: rp.id,
allowCredentials: authenticators.map((a) => ({
id: fromBase64(a.credentialID),
id: a.credentialID,
type: "public-key",
transports: stringToTransports(a.transports),
})),
Expand Down Expand Up @@ -801,7 +801,7 @@ describe("getAuthenticationResponse", () => {
...defaultWebAuthnConfig.authenticationOptions,
rpID: rp.id,
allowCredentials: authenticators.map((a) => ({
id: fromBase64(a.credentialID),
id: a.credentialID,
type: "public-key",
transports: stringToTransports(a.transports),
})),
Expand Down

0 comments on commit b97b35c

Please sign in to comment.