Fix broken tests (mock change for effects and plan audioengine)

This commit is contained in:
Corey Frang 2018-06-20 14:16:39 -04:00 committed by Michael "Z" Goddard
parent 5b693f6708
commit 7f2b9786ee
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
2 changed files with 7 additions and 0 deletions

View file

@ -6,6 +6,7 @@ const {AudioContext} = require('web-audio-test-api');
tap.test('AudioEngine', t => {
const audioEngine = new AudioEngine(new AudioContext());
t.plan(1);
t.deepEqual(audioEngine.inputNode.toJSON(), {
gain: {
inputs: [],

View file

@ -2,6 +2,12 @@ class AudioParamMock {
setTargetAtTime (value /* , start, stop */) {
this.value = value;
}
setValueAtTime (value) {
this.value = value;
}
linearRampToValueAtTime (value) {
this.value = value;
}
}
module.exports = AudioParamMock;