diff --git a/test/CappedToken.js b/test/CappedToken.js index 1f60dc8eb..55d998404 100644 --- a/test/CappedToken.js +++ b/test/CappedToken.js @@ -18,7 +18,7 @@ contract('Capped', function(accounts) { it('should start with the correct cap', async function() { let _cap = await token.cap(); - assert.equal(cap.toNumber(), _cap.toNumber()); + assert(cap.eq(_cap)); }) it('should mint when amount is less than cap', async function() {