using correct time source

This commit is contained in:
tambien 2019-06-17 21:50:43 -04:00
parent 94b4cf795d
commit ab23f03e3f

View file

@ -186,7 +186,7 @@ describe("Context", () => {
return Offline(context => {
const transport = new Transport({context});
transport.context.setTimeout(() => {
expect(Tone.now()).to.be.closeTo(0.01, 0.005);
expect(transport.now()).to.be.closeTo(0.01, 0.005);
}, 0.01);
}, 0.05);
});