From 23e07013c9028936d07a084e9e71d9b978aaa877 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Sun, 19 Feb 2017 20:49:35 -0500 Subject: [PATCH] allowing for sound to slowly ramp in --- test/helper/PassAudio.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/helper/PassAudio.js b/test/helper/PassAudio.js index 87f0af72..78bf39cf 100644 --- a/test/helper/PassAudio.js +++ b/test/helper/PassAudio.js @@ -17,10 +17,9 @@ define(["Test", "Tone/core/Offline", "Tone/signal/Signal", "Tone/core/Master"], return true; } else if (time < duration / 2) { expect(sample).to.be.closeTo(0, 0.001); - } else { - throw new Error("node outputs silence"); } } + throw new Error("node outputs silence"); }); };