mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 16:17:58 +00:00
fix MonoSynth test using incorrect Offline helper
This commit is contained in:
parent
22d5fb0ab9
commit
fdf6433e64
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue