summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/assertion/verifyAssertionResponse.test.ts8
-rw-r--r--packages/server/src/attestation/verifyAttestationResponse.test.ts6
-rw-r--r--packages/server/src/setupTests.ts6
3 files changed, 10 insertions, 10 deletions
diff --git a/packages/server/src/assertion/verifyAssertionResponse.test.ts b/packages/server/src/assertion/verifyAssertionResponse.test.ts
index ffd05f5..9e5b083 100644
--- a/packages/server/src/assertion/verifyAssertionResponse.test.ts
+++ b/packages/server/src/assertion/verifyAssertionResponse.test.ts
@@ -33,7 +33,7 @@ test('should throw when response origin is not expected value', () => {
'https://different.address',
authenticator,
);
- }).toThrow('Assertion origin was an unexpected value');
+ }).toThrow();
});
test('should throw when assertion type is not webauthn.create', () => {
@@ -49,7 +49,7 @@ test('should throw when assertion type is not webauthn.create', () => {
assertionOrigin,
authenticator,
);
- }).toThrow('Assertion type was an unexpected value');
+ }).toThrow();
});
test('should throw error if user was not present', () => {
@@ -63,7 +63,7 @@ test('should throw error if user was not present', () => {
assertionOrigin,
authenticator,
);
- }).toThrow('User was NOT present during assertion!');
+ }).toThrow();
});
test('should throw error if previous counter value is not less than in response', () => {
@@ -80,7 +80,7 @@ test('should throw error if previous counter value is not less than in response'
assertionOrigin,
badDevice,
);
- }).toThrow(`Counter in response did not increment from ${badCounter}`);
+ }).toThrow();
});
/**
diff --git a/packages/server/src/attestation/verifyAttestationResponse.test.ts b/packages/server/src/attestation/verifyAttestationResponse.test.ts
index 16763ce..2b314cf 100644
--- a/packages/server/src/attestation/verifyAttestationResponse.test.ts
+++ b/packages/server/src/attestation/verifyAttestationResponse.test.ts
@@ -91,7 +91,7 @@ test('should throw when response origin is not expected value', () => {
attestationNone,
'https://different.address'
);
- }).toThrow('Attestation origin was an unexpected value');
+ }).toThrow();
});
test('should throw when attestation type is not webauthn.create', () => {
@@ -105,7 +105,7 @@ test('should throw when attestation type is not webauthn.create', () => {
attestationNone,
origin,
);
- }).toThrow('Attestation type was an unexpected value');
+ }).toThrow();
});
test('should throw if an unexpected attestation format is specified', () => {
@@ -121,7 +121,7 @@ test('should throw if an unexpected attestation format is specified', () => {
attestationNone,
'https://dev.dontneeda.pw',
);
- }).toThrow(`Unsupported Attestation Format: ${fmt}`);
+ }).toThrow();
});
const attestationFIDOU2F = {
diff --git a/packages/server/src/setupTests.ts b/packages/server/src/setupTests.ts
index d515122..103e5fa 100644
--- a/packages/server/src/setupTests.ts
+++ b/packages/server/src/setupTests.ts
@@ -1,4 +1,4 @@
// Silence some console output
-jest.spyOn(console, 'log').mockImplementation();
-jest.spyOn(console, 'debug').mockImplementation();
-jest.spyOn(console, 'error').mockImplementation();
+// jest.spyOn(console, 'log').mockImplementation();
+// jest.spyOn(console, 'debug').mockImplementation();
+// jest.spyOn(console, 'error').mockImplementation();