Browse Source

fix treatment of bignumber in CappedToken test

Francisco Giordano 7 years ago
parent
commit
12303ceaf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/CappedToken.js

+ 1 - 1
test/CappedToken.js

@@ -18,7 +18,7 @@ contract('Capped', function(accounts) {
   it('should start with the correct cap', async function() {
   it('should start with the correct cap', async function() {
     let _cap = await token.cap();
     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() {
   it('should mint when amount is less than cap', async function() {