From 12303ceaf54293b97e8925c0c735a9a81d834a8d Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Wed, 22 Nov 2017 15:22:59 -0300 Subject: [PATCH] fix treatment of bignumber in CappedToken test --- test/CappedToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {