diff options
author | Matthew Miller <matthew@millerti.me> | 2022-03-07 13:54:30 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-03-07 13:58:52 -0800 |
commit | c074797a743c293c54aca6955af6b3f6d46b8a27 (patch) | |
tree | a7313e471848ea8cf585f256b6894ed381a587fa /packages/browser/src/methods/startRegistration.test.ts | |
parent | de0443c7d037d32728e03c710522e7591ebfb2d5 (diff) |
Define errors globally for testing
Diffstat (limited to 'packages/browser/src/methods/startRegistration.test.ts')
-rw-r--r-- | packages/browser/src/methods/startRegistration.test.ts | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts index f875a08..683bae8 100644 --- a/packages/browser/src/methods/startRegistration.test.ts +++ b/packages/browser/src/methods/startRegistration.test.ts @@ -356,56 +356,3 @@ describe('WebAuthnError', () => { }); }); }); - -/** - * Custom errors raised by WebAuthn - */ - -class AbortError extends Error { - constructor() { - super(); - this.name = 'AbortError'; - } -} - -class ConstraintError extends Error { - constructor() { - super(); - this.name = 'ConstraintError'; - } -} - -class InvalidStateError extends Error { - constructor() { - super(); - this.name = 'InvalidStateError'; - } -} - -class NotAllowedError extends Error { - constructor() { - super(); - this.name = 'NotAllowedError'; - } -} - -class NotSupportedError extends Error { - constructor() { - super(); - this.name = 'NotSupportedError'; - } -} - -class SecurityError extends Error { - constructor() { - super(); - this.name = 'SecurityError'; - } -} - -class UnknownError extends Error { - constructor() { - super(); - this.name = 'UnknownError'; - } -} |