Skip to content

Commit

Permalink
test: updated expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Dec 1, 2024
1 parent 0197e68 commit b9ee47e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/unit/audio-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -1519,11 +1519,11 @@ describe('AudioListener', () => {
constantSourceNode.start(startTime);
}
}).then((channelData) => {
expect(channelData[0]).to.be.closeTo(0.007105881, 0.000000001);
expect(channelData[1]).to.be.closeTo(0.007105881, 0.000000001);
expect(channelData[2]).to.be.closeTo(0.007105881, 0.000000001);
expect(channelData[3]).to.be.closeTo(0.007105881, 0.000000001);
expect(channelData[4]).to.be.closeTo(0.007105881, 0.000000001);
expect(channelData[0]).to.be.closeTo(0.007105881, 0.000000002);
expect(channelData[1]).to.be.closeTo(0.007105881, 0.000000002);
expect(channelData[2]).to.be.closeTo(0.007105881, 0.000000002);
expect(channelData[3]).to.be.closeTo(0.007105881, 0.000000002);
expect(channelData[4]).to.be.closeTo(0.007105881, 0.000000002);
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/audio-nodes/gain-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ describe('GainNode', () => {
expect(channelData[0]).to.equal(1);
expect(channelData[1]).to.equal(0.375);
expect(channelData[2]).to.be.closeTo(0, 0.00000000001);
expect(channelData[3]).to.equal(-0.125);
expect(channelData[3]).to.be.closeTo(-0.125, 0.00000003);
expect(channelData[4]).to.equal(-0.25);
});
});
Expand Down

0 comments on commit b9ee47e

Please sign in to comment.