fix skipped Opcode test
This commit is contained in:
parent
f2be0f386c
commit
2323e2a67a
|
@ -20,12 +20,10 @@ describe('Opcode', function() {
|
||||||
var oc = new Opcode();
|
var oc = new Opcode();
|
||||||
should.exist(oc);
|
should.exist(oc);
|
||||||
});
|
});
|
||||||
it.skip('should be able to create some constants', function() {
|
it('should be able to create some constants', function() {
|
||||||
// TODO: test works in node but not in browser
|
// TODO: test works in node but not in browser
|
||||||
for (var i in Opcode.map) {
|
for (var i in Opcode.map) {
|
||||||
console.log('var '+i + ' = ' + Opcode.map[i] + ';');
|
|
||||||
eval('var '+i + ' = ' + Opcode.map[i] + ';');
|
eval('var '+i + ' = ' + Opcode.map[i] + ';');
|
||||||
console.log(eval(i));
|
|
||||||
}
|
}
|
||||||
should.exist(OP_VER);
|
should.exist(OP_VER);
|
||||||
should.exist(OP_HASH160);
|
should.exist(OP_HASH160);
|
||||||
|
|
Loading…
Reference in New Issue