mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-07 03:43:48 -05:00
Fix errorType parameter being null
The previous syntax expected the argument would be passed as an
object like { errorType: <type> }.
This commit is contained in:
@@ -100,7 +100,7 @@ describe('Register security key', () => {
|
||||
test.each([
|
||||
['network'],
|
||||
['server'],
|
||||
])('alerts if sending WebAuthn credentials fails (%s error)', ({errorType}, done) => {
|
||||
])('alerts if sending WebAuthn credentials fails (%s error)', (errorType, done) => {
|
||||
jest.spyOn(window.navigator.credentials, 'create').mockImplementation(() => {
|
||||
// fake PublicKeyCredential response from WebAuthn API
|
||||
return Promise.resolve({ response: {} })
|
||||
|
||||
Reference in New Issue
Block a user