From 2b137cc17c5af0b66a18fce59879c49dc0a121a1 Mon Sep 17 00:00:00 2001 From: Trevin Hofmann Date: Thu, 12 Feb 2015 09:44:28 -0600 Subject: [PATCH] Add test for Opcode.inspect --- test/opcode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/opcode.js b/test/opcode.js index 150ef86..c060989 100644 --- a/test/opcode.js +++ b/test/opcode.js @@ -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(''); + }); + }); });