Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
16
scratch-vm/test/unit/tw_vm_exports.js
Normal file
16
scratch-vm/test/unit/tw_vm_exports.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const {test} = require('tap');
|
||||
const VM = require('../../src/virtual-machine');
|
||||
|
||||
test('exports exist', t => {
|
||||
const vm = new VM();
|
||||
t.type(vm.exports.Sprite, 'function');
|
||||
t.type(vm.exports.RenderedTarget, 'function');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('JSZip', t => {
|
||||
const JSZip = new VM().exports.JSZip;
|
||||
const zip = new JSZip();
|
||||
t.type(zip.file, 'function');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user