Skip to content

Commit

Permalink
Plasma: use toNumber on big number tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Nolan committed Apr 17, 2019
1 parent 8d16da4 commit e4c57cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/Plasma MVP/JavaScript/Enqueue/test/testExitQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contract('Exit Queue', (accounts) => {

it('should have a size of one', async () => {
const size = await contract.currentSize();
assert.equal(size, 1);
assert.equal(size.toNumber(), 1);
});

describe('after second enqueue', () => {
Expand All @@ -23,7 +23,7 @@ contract('Exit Queue', (accounts) => {

it('should have a size of two', async () => {
const size = await contract.currentSize();
assert.equal(size, 2);
assert.equal(size.toNumber(), 2);
});

describe('after third enqueue', () => {
Expand All @@ -33,7 +33,7 @@ contract('Exit Queue', (accounts) => {

it('should have a size of three', async () => {
const size = await contract.currentSize();
assert.equal(size, 3);
assert.equal(size.toNumber(), 3);
});
});
});
Expand Down

0 comments on commit e4c57cb

Please sign in to comment.