From 4d4c84f627f59410ad40aafd4466d7c55769c335 Mon Sep 17 00:00:00 2001 From: Grant Snodgrass Date: Mon, 19 Dec 2016 17:23:06 -0500 Subject: [PATCH] Fix broken test in Chai v4 In Chai v4, the `above` assertion no longer accepts strings, causing a test to fail. This commit fixes the broken test by changing the string `'9'` to the number `9`. --- test/timers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/timers.js b/test/timers.js index 671f6e6..3fb8d98 100644 --- a/test/timers.js +++ b/test/timers.js @@ -41,7 +41,7 @@ describe('Chai Timers', function () { timer.created.should.be.a('date'); timer.should.have.property('elapsed') - .to.be.a('number').above('9'); + .to.be.a('number').above(9); done(); }, 10); });