mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 15:32:40 -05:00
bafdf8d9f2
Update all tests for `no-var` and `prefer-arrow-callback` (using `--fix`)
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
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.addSprite2, 'function');
|
|
t.type(vm.addCostume, 'function');
|
|
t.type(vm.addBackdrop, 'function');
|
|
t.type(vm.addSound, '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();
|
|
});
|