scratch-audio/test/__mocks__/AudioTarget.js
2018-06-08 12:39:29 -04:00

21 lines
377 B
JavaScript

const AudioNodeMock = require('./AudioNode');
class AudioTargetMock {
constructor () {
this.inputNode = new AudioNodeMock();
}
connect (target) {
this.inputNode.connect(target.getInputNode());
}
getInputNode () {
return this.inputNode;
}
getSoundPlayers () {
return {};
}
}
module.exports = AudioTargetMock;