From 385d7d1d605b663b7c2cb57986ea8c4004359662 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Fri, 8 Nov 2024 12:16:57 -0500 Subject: [PATCH] Test local storage values in stamp test --- .../src/__tests__/stamp-test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/telegram-cloud-storage-stamper/src/__tests__/stamp-test.ts b/packages/telegram-cloud-storage-stamper/src/__tests__/stamp-test.ts index 6772dee3d..91a3f61d5 100644 --- a/packages/telegram-cloud-storage-stamper/src/__tests__/stamp-test.ts +++ b/packages/telegram-cloud-storage-stamper/src/__tests__/stamp-test.ts @@ -68,6 +68,10 @@ test("uses provided signature to make stamp", async function () { pemPublicKey: pemPublicKey, signature: decodedStamp["signature"], }); + + let { apiPublicKey, apiPrivateKey } = await stamper.getAPIKey(); + expect(apiPublicKey).toEqual(publicKey); + expect(apiPrivateKey).toEqual(privateKey); } catch (e) { fail(); }