From 4a79d7d75dc2358c2f10fd1f1cf340ff63ac9792 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Mon, 18 Nov 2024 20:33:55 -0800 Subject: [PATCH] add a test --- example/src/tests/clientTests.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/example/src/tests/clientTests.ts b/example/src/tests/clientTests.ts index d916ef77..dba0cbb7 100644 --- a/example/src/tests/clientTests.ts +++ b/example/src/tests/clientTests.ts @@ -34,6 +34,18 @@ test('can make a client', async () => { return true }) +test('can sign with installation key', async () => { + const [client] = await createClients(1) + + const signature = await client.signWithInstallationKey('A digest message') + + assert( + signature !== undefined && signature.length > 0, + `Signature should not be empty but was: ${signature}` + ) + return true +}) + test('can revoke all other installations', async () => { const keyBytes = new Uint8Array([ 233, 120, 198, 96, 154, 65, 132, 17, 132, 96, 250, 40, 103, 35, 125, 64,