Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 19, 2024
1 parent a43ed6b commit 4a79d7d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example/src/tests/clientTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a79d7d

Please sign in to comment.