Skip to content

Commit

Permalink
Dbaeumer/husky-roadrunner-purple (#1478)
Browse files Browse the repository at this point in the history
Fix test case on new node version
  • Loading branch information
dbaeumer authored May 21, 2024
1 parent f6595cb commit 52d8fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonrpc/src/node/test/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ suite('Messages', () => {
}
const msg: RequestMessage = { jsonrpc: '2.0', id: 1, method: 'example' };
const zipped = await gzipEncoder.encode(Buffer.from(JSON.stringify(msg), 'utf8'));
assert.strictEqual(Buffer.from(zipped).toString('base64'), 'H4sIAAAAAAAAA6tWyirOzysqSFayUjLSM1DSUcpMUbIy1FHKTS3JyE9RslJKrUjMLchJVaoFAPsmJa0rAAAA');
assert.ok(Buffer.from(zipped).toString('base64').startsWith('H4sIAAAAAAAAA6tWyirOzysqSFayUjLSM1DSUcp'));
const unzipped: RequestMessage = JSON.parse(Buffer.from(await gzipDecoder.decode(zipped)).toString('utf-8')) as RequestMessage;
assert.strictEqual(unzipped.id, 1);
assert.strictEqual(unzipped.method, 'example');
Expand Down

0 comments on commit 52d8fac

Please sign in to comment.