Spaces:
Running
Running
File size: 1,185 Bytes
30c32c8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
const test = require('tap').test;
const VirtualMachine = require('../../src/index');
test('interface', t => {
const vm = new VirtualMachine();
t.type(vm, 'object');
t.type(vm.start, 'function');
t.type(vm.greenFlag, 'function');
t.type(vm.setTurboMode, 'function');
t.type(vm.setCompatibilityMode, 'function');
t.type(vm.stopAll, 'function');
t.type(vm.clear, 'function');
t.type(vm.getPlaygroundData, 'function');
t.type(vm.postIOData, 'function');
t.type(vm.loadProject, 'function');
t.type(vm.addSprite, 'function');
t.type(vm.addCostume, 'function');
t.type(vm.addBackdrop, 'function');
t.type(vm.addSound, 'function');
t.type(vm.deleteCostume, 'function');
t.type(vm.deleteSound, 'function');
t.type(vm.renameSprite, 'function');
t.type(vm.deleteSprite, 'function');
t.type(vm.attachRenderer, 'function');
t.type(vm.blockListener, 'function');
t.type(vm.flyoutBlockListener, 'function');
t.type(vm.setEditingTarget, 'function');
t.type(vm.emitTargetsUpdate, 'function');
t.type(vm.emitWorkspaceUpdate, 'function');
t.type(vm.postSpriteInfo, 'function');
t.end();
});
|