Add test for Opcode.inspect

This commit is contained in:
Trevin Hofmann 2015-02-12 09:44:28 -06:00
parent 5bb750252d
commit 2b137cc17c
1 changed files with 5 additions and 0 deletions

View File

@ -143,5 +143,10 @@ describe('Opcode', function() {
});
describe('#inspect', function() {
it('should output opcode by name, hex, and decimal', function() {
Opcode.fromString('OP_NOP').inspect().should.equal('<Opcode: OP_NOP, hex: 61, decimal: 97>');
});
});
});