|
|
@ -1,10 +1,14 @@ |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
var should = require('chai').should(); |
|
|
|
var Opcode = require('../lib/opcode'); |
|
|
|
var bitcore = require('..'); |
|
|
|
var Opcode = bitcore.Opcode; |
|
|
|
|
|
|
|
describe('Opcode', function() { |
|
|
|
|
|
|
|
it('should create a new Opcode', function() { |
|
|
|
var opcode = new Opcode(5); |
|
|
|
should.exist(opcode); |
|
|
|
}); |
|
|
|
|
|
|
|
it('should convert to a string with this handy syntax', function() { |
|
|
|