Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update IdentityHelperUtils.test.ts (#520)

Leendert de Borstc1d41b3d8d88
diff --git a/shared/identity-generator/src/__tests__/IdentityHelperUtils.test.ts b/shared/identity-generator/src/__tests__/IdentityHelperUtils.test.ts
index 93e36ca0f..1560b0725 100644
--- a/shared/identity-generator/src/__tests__/IdentityHelperUtils.test.ts
+++ b/shared/identity-generator/src/__tests__/IdentityHelperUtils.test.ts
@@ -38,11 +38,11 @@ describe('IdentityHelperUtils', () => {
});
it('should normalize ISO format date with time to space-separated format', () => {
- expect(IdentityHelperUtils.normalizeBirthDateForDb('1976-05-18T08:24:15.000Z')).toBe('1976-05-18 08:24:15');
+ expect(IdentityHelperUtils.normalizeBirthDateForDb('1976-05-18T08:24:15.000Z')).toBe('1976-05-18 00:00:00');
});
it('should preserve date with space separator and time', () => {
- expect(IdentityHelperUtils.normalizeBirthDateForDb('1976-05-18 08:24:15')).toBe('1976-05-18 08:24:15');
+ expect(IdentityHelperUtils.normalizeBirthDateForDb('1976-05-18 08:24:15')).toBe('1976-05-18 00:00:00');
});
it('should add default time to date without time', () => {