mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-14 12:53:59 +00:00
simplifying test slightly
This commit is contained in:
parent
4f5353e7f0
commit
06d94bd3cd
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ describe("SyncedSignal", () => {
|
|||
sched = new SyncedSignal(0).toDestination();
|
||||
sched.linearRampTo(1, 1, 1);
|
||||
transport.start(0);
|
||||
}, 3).then((buffer) => {
|
||||
}, 1).then((buffer) => {
|
||||
expect(buffer.getValueAtTime(0)).to.closeTo(0, 0.1);
|
||||
expect(buffer.getValueAtTime(0.5)).to.closeTo(0, 0.1);
|
||||
expect(buffer.getValueAtTime(1)).to.closeTo(0, 0.1);
|
||||
|
@ -155,7 +155,7 @@ describe("SyncedSignal", () => {
|
|||
sched = new SyncedSignal(1).toDestination();
|
||||
sched.exponentialRampTo(3, 1, 1);
|
||||
transport.start(0);
|
||||
}, 3).then((buffer) => {
|
||||
}, 1).then((buffer) => {
|
||||
buffer.forEach((sample, time) => {
|
||||
expect(sample).to.be.closeTo(sched.getValueAtTime(time), 0.02);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue