1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 15:16:38 +00:00

fixed instanceof EmuHalt

This commit is contained in:
Steven Hugg
2021-12-21 23:12:52 -06:00
parent 82ebc47caa
commit 48eb75882b
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -128,3 +128,11 @@ describe('string functions', function() {
assert.ok(util.isProbablyBinary(null, [0xf0,0x12])); // ran out of data
});
});
describe('EmuHalt', function() {
it('Should detect emuhalt', function() {
var e = new emu.EmuHalt();
assert.ok(e instanceof emu.EmuHalt);
assert.ok(e.hasOwnProperty('$loc'));
});
});