diff --git a/test/AudioEngine.js b/test/AudioEngine.js index f9b1b5e..0e12087 100644 --- a/test/AudioEngine.js +++ b/test/AudioEngine.js @@ -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: [], diff --git a/test/__mocks__/AudioParam.js b/test/__mocks__/AudioParam.js index 8ddc9a5..7cfd0b7 100644 --- a/test/__mocks__/AudioParam.js +++ b/test/__mocks__/AudioParam.js @@ -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;