2014-02-18 07:47:15 -08:00
|
|
|
'use strict';
|
|
|
|
|
2014-03-08 13:42:08 -08:00
|
|
|
var chai = chai || require('chai');
|
|
|
|
var bitcore = bitcore || require('../bitcore');
|
2014-02-18 07:47:15 -08:00
|
|
|
var should = chai.should();
|
|
|
|
|
|
|
|
var BlockModule = bitcore.Block;
|
|
|
|
var Block;
|
|
|
|
|
|
|
|
describe('Block', function() {
|
|
|
|
it('should initialze the main object', function() {
|
|
|
|
should.exist(BlockModule);
|
|
|
|
});
|
|
|
|
it('should be able to create class', function() {
|
2014-03-05 11:11:16 -08:00
|
|
|
Block = BlockModule;
|
2014-02-18 07:47:15 -08:00
|
|
|
should.exist(Block);
|
|
|
|
});
|
|
|
|
it('should be able to create instance', function() {
|
2014-02-18 08:17:23 -08:00
|
|
|
var p = new Block();
|
2014-02-18 07:47:15 -08:00
|
|
|
should.exist(p);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|