diff --git a/package.json b/package.json index 9d4eaf0..7613cd2 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,8 @@ "istanbul": "~0.2.6" }, "testling": { - "files": "test/test*.js", + "harness": "mocha-tdd", + "html": "test/index-testling.html", "browsers": [ "ie/6..latest", "chrome/22..latest", diff --git a/test/index-testling.html b/test/index-testling.html new file mode 100644 index 0000000..e6a9447 --- /dev/null +++ b/test/index-testling.html @@ -0,0 +1,52 @@ + + + + Mocha + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test.PeerManager.js b/test/test.PeerManager.js index 5f3aa7f..ab6565d 100644 --- a/test/test.PeerManager.js +++ b/test/test.PeerManager.js @@ -5,7 +5,7 @@ var bitcore = bitcore || require('../bitcore'); var should = chai.should(); -var PeerManagerModule = bitcore.PeerManager || require('./PeerManager'); +var PeerManagerModule = bitcore.PeerManager; var PeerManager;