bitcore/test/test.Script.js

29 lines
518 B
JavaScript
Raw Normal View History

2014-02-06 07:57:47 -08:00
'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);
});
});