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.
|
|
|
'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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|