From b9ee47e1aa26d4981ef242cdc68a46091456541b Mon Sep 17 00:00:00 2001 From: Christoph Guttandin Date: Sun, 1 Dec 2024 15:16:54 +0100 Subject: [PATCH] test: updated expected values --- test/unit/audio-listener.js | 10 +++++----- test/unit/audio-nodes/gain-node.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/audio-listener.js b/test/unit/audio-listener.js index a9bafa87..6f9e625d 100644 --- a/test/unit/audio-listener.js +++ b/test/unit/audio-listener.js @@ -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); }); }); }); diff --git a/test/unit/audio-nodes/gain-node.js b/test/unit/audio-nodes/gain-node.js index f4354586..07e16aa4 100644 --- a/test/unit/audio-nodes/gain-node.js +++ b/test/unit/audio-nodes/gain-node.js @@ -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); }); });