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:
Ben Thorner
2021-05-14 12:35:22 +01:00
parent 06cc5b58c7
commit bcf2f7dccd

View File

@@ -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: {} })