Skip to content

Commit

Permalink
long test: use node 6 compatible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Crisci committed Aug 15, 2020
1 parent f1e2b4a commit 1bc52bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/long.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ testIfHasBigInt('test long type works correctly', async () => {
expect(result === what).toEqual(true);

expect((async () => {
return await test.EchoSigned(what + 1n);
return await test.EchoSigned(what + BigInt(1));
})()).rejects.toThrow();

// int64 min
Expand All @@ -90,7 +90,7 @@ testIfHasBigInt('test long type works correctly', async () => {
expect(result === what).toEqual(true);

expect((async () => {
return await test.EchoSigned(what - 1n);
return await test.EchoSigned(what - BigInt(1));
})()).rejects.toThrow();

// uint64 max
Expand All @@ -99,7 +99,7 @@ testIfHasBigInt('test long type works correctly', async () => {
expect(result === what).toEqual(true);

expect((async () => {
return await test.EchoUnsigned(what + 1n);
return await test.EchoUnsigned(what + BigInt(1));
})()).rejects.toThrow();

// uint64 min
Expand All @@ -108,6 +108,6 @@ testIfHasBigInt('test long type works correctly', async () => {
expect(result === what).toEqual(true);

expect((async () => {
return await test.EchoUnsigned(what - 1n);
return await test.EchoUnsigned(what - BigInt(1));
})()).rejects.toThrow();
});

0 comments on commit 1bc52bf

Please sign in to comment.