From f178445b07af823ec693e6563f0198a8d3ab5db6 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 20 Nov 2014 18:40:23 -0300 Subject: [PATCH] fix tests for bn --- test/crypto/bn.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/crypto/bn.js b/test/crypto/bn.js index 03ef279..7a72b5d 100644 --- a/test/crypto/bn.js +++ b/test/crypto/bn.js @@ -1,7 +1,8 @@ -var chai = chai || require('chai'); -var should = chai.should(); -var assert = chai.assert; -var BN = require('../lib/bn'); +'use strict'; + +var should = require('chai').should(); +var bitcore = require('../..'); +var BN = bitcore.BN; describe('BN', function() { it('should create a bn', function() { @@ -18,7 +19,7 @@ describe('BN', function() { it('should parse numbers below and at bn.js internal word size', function() { var bn = new BN(Math.pow(2, 26) - 1); bn.toString().should.equal((Math.pow(2, 26) - 1).toString()); - var bn = new BN(Math.pow(2, 26)); + bn = new BN(Math.pow(2, 26)); bn.toString().should.equal((Math.pow(2, 26)).toString()); });