Manuel Araoz
11 years ago
6 changed files with 87 additions and 5 deletions
@ -0,0 +1,28 @@ |
|||
'use strict'; |
|||
|
|||
var chai = require('chai'); |
|||
var bitcore = require('../bitcore'); |
|||
|
|||
var should = chai.should(); |
|||
|
|||
var ScriptModule = bitcore.Script; |
|||
var Script; |
|||
|
|||
describe('Script', function() { |
|||
it('should initialze the main object', function() { |
|||
should.exist(ScriptModule); |
|||
}); |
|||
it('should be able to create class', function() { |
|||
Script = ScriptModule.class(); |
|||
should.exist(Script); |
|||
}); |
|||
it('should be able to create instance', function() { |
|||
var s = new Script(); |
|||
should.exist(s); |
|||
}); |
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,28 @@ |
|||
'use strict'; |
|||
|
|||
var chai = require('chai'); |
|||
var bitcore = require('../bitcore'); |
|||
|
|||
var should = chai.should(); |
|||
|
|||
var TransactionModule = bitcore.Transaction; |
|||
var Transaction; |
|||
|
|||
describe('Transaction', function() { |
|||
it('should initialze the main object', function() { |
|||
should.exist(TransactionModule); |
|||
}); |
|||
it('should be able to create class', function() { |
|||
Transaction = TransactionModule.class(); |
|||
should.exist(Transaction); |
|||
}); |
|||
it('should be able to create instance', function() { |
|||
var t = new Transaction(); |
|||
should.exist(t); |
|||
}); |
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,20 @@ |
|||
'use strict'; |
|||
|
|||
var chai = require('chai'); |
|||
var bitcore = require('../bitcore'); |
|||
|
|||
var should = chai.should(); |
|||
|
|||
describe('Miscelaneous stuff', function() { |
|||
it('should initialze the config object', function() { |
|||
should.exist(bitcore.config); |
|||
}); |
|||
it('should initialze the log object', function() { |
|||
should.exist(bitcore.log); |
|||
}); |
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
Loading…
Reference in new issue