浏览代码

fix treatment of bignumber in CappedToken test

Francisco Giordano 7 年之前
父节点
当前提交
12303ceaf5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() {
     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() {