fix MonoSynth test using incorrect Offline helper

This commit is contained in:
Filipe Herculano 2019-10-28 18:24:56 -04:00
parent 22d5fb0ab9
commit fdf6433e64

View file

@ -3,7 +3,7 @@ import { MonoSynth } from "./MonoSynth";
import { InstrumentTest } from "test/helper/InstrumentTests";
import { CompareToFile } from "test/helper/CompareToFile";
import { expect } from "chai";
import { Offline } from "Tone";
import { Offline } from "test/helper/Offline";
import { CHROME_AUDIO_RENDERING } from "test/helper/Supports";
describe("MonoSynth", () => {
@ -82,7 +82,7 @@ describe("MonoSynth", () => {
}).toDestination();
synth.triggerAttack("C4", 0);
}, 0.5).then((buffer) => {
// expect(buffer.getLastSoundTime()).to.be.closeTo(0.2, 0.01);
expect(buffer.getTimeOfLastSound()).to.be.closeTo(0.2, 0.01);
});
});