UNPKG

scratch-gui

Version:

GraphicaL User Interface for creating and running Scratch 3.0 projects

22 lines (21 loc) 631 B
export default class MockAudioEffects { static get effectTypes () { // @todo can this be imported from the real file? return { ROBOT: 'robot', REVERSE: 'reverse', LOUDER: 'higher', SOFTER: 'lower', FASTER: 'faster', SLOWER: 'slower', ECHO: 'echo' }; } constructor (buffer, name) { this.buffer = buffer; this.name = name; this.process = jest.fn(done => { this._finishProcessing = renderedBuffer => done({renderedBuffer}); }); MockAudioEffects.instance = this; } }