scratch-audio/test/AudioEngine.js

19 lines
458 B
JavaScript
Raw Normal View History

2018-06-19 13:37:00 -04:00
const tap = require('tap');
const AudioEngine = require('../src/AudioEngine');
const {AudioContext} = require('web-audio-test-api');
tap.test('AudioEngine', t => {
const audioEngine = new AudioEngine(new AudioContext());
t.plan(1);
2018-06-19 13:37:00 -04:00
t.deepEqual(audioEngine.inputNode.toJSON(), {
gain: {
inputs: [],
value: 1
},
inputs: [],
name: 'GainNode'
}, 'JSON Representation of inputNode');
});