From 3775d3c08accdd310ea6b0b1c100fb86dae1cfcb Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 11 Dec 2014 11:55:55 -0300 Subject: [PATCH] fix tests for preconditions --- index.js | 1 + test/util/preconditions.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index fc77547..0a4069c 100644 --- a/index.js +++ b/index.js @@ -23,6 +23,7 @@ bitcore.util = {}; bitcore.util.bitcoin = require('./lib/util/bitcoin'); bitcore.util.buffer = require('./lib/util/buffer'); bitcore.util.js = require('./lib/util/js'); +bitcore.util.preconditions = require('./lib/util/preconditions'); // transport bitcore.transport = {}; diff --git a/test/util/preconditions.js b/test/util/preconditions.js index 0ccea83..36f747e 100644 --- a/test/util/preconditions.js +++ b/test/util/preconditions.js @@ -2,9 +2,10 @@ var should = require('chai').should(); -var errors = require('../../lib/errors'); -var $ = require('../../lib/util/preconditions'); -var PrivateKey = require('../../lib/privatekey'); +var bitcore = require('../..'); +var errors = bitcore.errors; +var $ = bitcore.util.preconditions; +var PrivateKey = bitcore.PrivateKey; describe('preconditions', function() {