Skip to content

Commit

Permalink
making sure that the onerror returns the error
Browse files Browse the repository at this point in the history
  • Loading branch information
tambien committed Jan 30, 2020
1 parent bb6a6fd commit 766ef63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tone/source/buffer/Player.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 766ef63

Please sign in to comment.