Stub runtime to fix unit test

This commit is contained in:
Eric Rosenbaum 2018-02-27 15:38:34 -05:00
parent db795abfbc
commit a0525542fc

View file

@ -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),