-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5045b5
commit da7aa6e
Showing
4 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,4 +172,5 @@ export { | |
UserInfo, | ||
UserMetadata, | ||
UserRecord, | ||
PasskeyInfo, | ||
} from './user-record'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,14 +102,14 @@ function getValidUserResponse(tenantId?: string): GetAccountInfoUserResponse { | |
], | ||
passkeyInfo: [ | ||
{ | ||
name: "[email protected]", | ||
credentialId: "credentialId1", | ||
displayName: "passkey1", | ||
name: '[email protected]', | ||
credentialId: 'credentialId1', | ||
displayName: 'passkey1', | ||
}, | ||
{ | ||
name: "[email protected]", | ||
credentialId: "credentialId2", | ||
displayName: "passkey2", | ||
name: '[email protected]', | ||
credentialId: 'credentialId2', | ||
displayName: 'passkey2', | ||
} | ||
] | ||
}; | ||
|
@@ -199,14 +199,14 @@ function getUserJSON(tenantId?: string): object { | |
}, | ||
passkeyInfo: [ | ||
{ | ||
name: "[email protected]", | ||
credentialId: "credentialId1", | ||
displayName: "passkey1", | ||
name: '[email protected]', | ||
credentialId: 'credentialId1', | ||
displayName: 'passkey1', | ||
}, | ||
{ | ||
name: "[email protected]", | ||
credentialId: "credentialId2", | ||
displayName: "passkey2", | ||
name: '[email protected]', | ||
credentialId: 'credentialId2', | ||
displayName: 'passkey2', | ||
} | ||
] | ||
}; | ||
|
@@ -699,10 +699,10 @@ describe('PasskeyInfo', () => { | |
it('should create a PasskeyInfo object with valid data', () => { | ||
expect(passkeyInfo).to.be.an.instanceOf(PasskeyInfo); | ||
}); | ||
|
||
it('should throw when missing required fields', () => { | ||
expect(() => { | ||
return new PasskeyInfo({}); | ||
return new PasskeyInfo(null as any); | ||
}).to.throw('INTERNAL ASSERT FAILED: Invalid passkey info response'); | ||
}); | ||
}); | ||
|