From 09e8aeac4461268f9a1d0b5e894acafe94360d04 Mon Sep 17 00:00:00 2001 From: Manik Sachdeva Date: Wed, 26 Apr 2017 21:46:27 -0700 Subject: [PATCH] add true and false from chai --- test/16.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/16.js b/test/16.js index 673edf6..5399baf 100644 --- a/test/16.js +++ b/test/16.js @@ -5,14 +5,14 @@ const hasDuplicates = duplicates.hasDuplicates; describe('check duplicates', () => { it('should return true since array has duplicates', () => { const array = [1,2,3,3,4]; - expect(hasDuplicates(array)).eql(true); + expect(hasDuplicates(array)).to.be.true; }); it('should return false because array does not have duplicates', () => { const array = [1,2,3,4]; - expect(hasDuplicates(array)).eql(false); + expect(hasDuplicates(array)).to.be.false; }); it('should return false because array is empty', () => { const array = []; - expect(hasDuplicates(array)).eql(false); + expect(hasDuplicates(array)).to.be.false; }); });