Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Nov 27, 2024
1 parent dca7408 commit 27ff020
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sdk/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ describe('index', () => {
expect(instance.createEIP712).toBeDefined();
expect(instance.generateKeypair).toBeDefined();
expect(instance.createEncryptedInput).toBeDefined();
expect(instance.getPublicKey()).toBe(serializedPublicKey);
expect(instance.getPublicKey()).toStrictEqual({
publicKey: serializedPublicKey,
publicKeyId,
});
expect(instance.getPublicParams(2048)?.publicParamsId).toBe(publicParamsId);
});

it('fails to create an instance', async () => {
Expand Down Expand Up @@ -70,6 +74,6 @@ describe('index', () => {
publicKey: 43 as any,
publicKeyId,
}),
).rejects.toThrow('publicKey must be a string');
).rejects.toThrow('publicKey must be a Uint8Array');
});
});

0 comments on commit 27ff020

Please sign in to comment.