diff --git a/Tone/source/buffer/Player.test.ts b/Tone/source/buffer/Player.test.ts index 8e7f95864..0ce152ade 100644 --- a/Tone/source/buffer/Player.test.ts +++ b/Tone/source/buffer/Player.test.ts @@ -132,7 +132,8 @@ describe("Player", () => { it("invokes onerror if no url", (done) => { const source = new Player({ url: "./nosuchfile.wav", - onerror() { + onerror(e) { + expect(e).to.be.instanceOf(Error); source.dispose(); done(); }