Skip to content

Commit

Permalink
fix: fix WASM test
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas authored and rygine committed Dec 13, 2023
1 parent 9b75771 commit e70ef01
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/snap/src/handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,6 @@ describe('onRPCRequest', () => {
base64Decode(resultPayload),
);

console.log(
'decodedEncryptResponse',
JSON.stringify(decodedEncryptResponse),
);

const decryptRequest = keystore.SelfDecryptRequest.encode({
requests: [
{
Expand All @@ -244,10 +239,10 @@ describe('onRPCRequest', () => {
});

const decryptResultPayload = ((await decryptResponse) as any).response
.result.res;

const decryptResultProto =
keystore.DecryptResponse.decode(decryptResultPayload);
?.result.res;
const decryptResultProto = keystore.DecryptResponse.decode(
base64Decode(decryptResultPayload),
);
expect(decryptResultProto.responses[0].result?.decrypted).toEqual(
originalData,
);
Expand Down

0 comments on commit e70ef01

Please sign in to comment.