You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
517 B
29 lines
517 B
11 years ago
|
'use strict';
|
||
|
|
||
|
var chai = require('chai');
|
||
|
var bitcore = require('../bitcore');
|
||
|
|
||
|
var should = chai.should();
|
||
|
|
||
|
var PeerModule = bitcore.Peer;
|
||
|
var Peer;
|
||
|
|
||
|
describe('Peer', function() {
|
||
|
it('should initialze the main object', function() {
|
||
|
should.exist(PeerModule);
|
||
|
});
|
||
|
it('should be able to create class', function() {
|
||
|
Peer = PeerModule.class();
|
||
|
should.exist(Peer);
|
||
|
});
|
||
|
it('should be able to create instance', function() {
|
||
|
var p = new Peer("localhost", 8333);
|
||
|
should.exist(p);
|
||
|
});
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|