1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-28 02:23:25 +00:00

Fix broken audit test (#19279)

This commit is contained in:
Oscar Hinton
2026-02-27 14:38:35 +01:00
committed by GitHub
parent 59c0b28816
commit 41c49a4d66

View File

@@ -21,7 +21,7 @@ describe("AuditService", () => {
beforeEach(() => {
mockCrypto = {
hash: jest.fn().mockResolvedValue(Buffer.from("AABBCCDDEEFF", "hex")),
hash: jest.fn().mockResolvedValue(new Uint8Array([0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff])),
} as unknown as jest.Mocked<CryptoFunctionService>;
mockApi = {