Manuel Araoz
11 years ago
9 changed files with 70 additions and 9 deletions
@ -0,0 +1,29 @@ |
|||
'use strict'; |
|||
|
|||
var chai = require('chai'); |
|||
var bitcore = require('../bitcore'); |
|||
|
|||
var should = chai.should(); |
|||
|
|||
var ConnectionModule = bitcore.Connection; |
|||
var Connection; |
|||
|
|||
describe('Connection', function() { |
|||
it('should initialze the main object', function() { |
|||
should.exist(ConnectionModule); |
|||
}); |
|||
it('should be able to create class', function() { |
|||
Connection = ConnectionModule.class(); |
|||
should.exist(Connection); |
|||
}); |
|||
it('should be able to create instance', function() { |
|||
var mSocket, mPeer; |
|||
var c = new Connection(mSocket, mPeer); |
|||
should.exist(c); |
|||
}); |
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,28 @@ |
|||
'use strict'; |
|||
|
|||
var chai = require('chai'); |
|||
var bitcore = require('../bitcore'); |
|||
|
|||
var should = chai.should(); |
|||
|
|||
var ScriptInterpreterModule = bitcore.ScriptInterpreter; |
|||
var ScriptInterpreter; |
|||
|
|||
describe('ScriptInterpreter', function() { |
|||
it('should initialze the main object', function() { |
|||
should.exist(ScriptInterpreterModule); |
|||
}); |
|||
it('should be able to create class', function() { |
|||
ScriptInterpreter = ScriptInterpreterModule.class(); |
|||
should.exist(ScriptInterpreter); |
|||
}); |
|||
it('should be able to create instance', function() { |
|||
var si = new ScriptInterpreter(); |
|||
should.exist(si); |
|||
}); |
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
Loading…
Reference in new issue