From 620e012321775f5e085a98fe56fcbfe66fc67f1e Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Mon, 11 Nov 2024 13:44:02 +0100 Subject: [PATCH] fix: lint --- packages/core/src/security/Manager.test.ts | 12 +++++++----- specs | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/core/src/security/Manager.test.ts b/packages/core/src/security/Manager.test.ts index 4b7a38027fae..28629dbbca88 100644 --- a/packages/core/src/security/Manager.test.ts +++ b/packages/core/src/security/Manager.test.ts @@ -33,13 +33,15 @@ vi.mock("node:crypto", async () => { }; }); -test("constructor() -> should set the network key, auth key and encryption key", (t) => { +test("constructor() -> should set the network key, auth key and encryption key", async (t) => { const man = new SecurityManager(options); t.expect(man.networkKey).toStrictEqual(networkKey); - t.expect(isUint8Array(man.authKey)).toBe(true); - t.expect(man.authKey.length).toBe(16); - t.expect(isUint8Array(man.encryptionKey)).toBe(true); - t.expect(man.encryptionKey.length).toBe(16); + const authKey = await man.getAuthKey(); + const encryptionKey = await man.getEncryptionKey(); + t.expect(isUint8Array(authKey)).toBe(true); + t.expect(authKey).toHaveLength(16); + t.expect(isUint8Array(encryptionKey)).toBe(true); + t.expect(encryptionKey).toHaveLength(16); }); test("constructor() -> should throw if the network key doesn't have length 16", (t) => { diff --git a/specs b/specs index 0233f8987995..01c7a02c7a37 160000 --- a/specs +++ b/specs @@ -1 +1 @@ -Subproject commit 0233f8987995283c034fdb6a3c2e098b0cdd659d +Subproject commit 01c7a02c7a374c88cc1be5387c7bc234a720c9c3