mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-27 06:40:28 -04:00
Stub runtime to fix unit test
This commit is contained in:
parent
db795abfbc
commit
a0525542fc
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
const test = require('tap').test;
|
||||
const Music = require('../../src/extensions/scratch3_music/index.js');
|
||||
const runtime = Object.create(null);
|
||||
|
||||
const blocks = new Music(runtime);
|
||||
const fakeRuntime = {
|
||||
getTargetForStage: () => ({tempo: 60})
|
||||
};
|
||||
|
||||
const blocks = new Music(fakeRuntime);
|
||||
|
||||
const util = {
|
||||
stackFrame: Object.create(null),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue