From 6bfd2fd131cb4e70e0dd81c3be5d7f8a677adc04 Mon Sep 17 00:00:00 2001 From: Nathan Landis Date: Wed, 17 Apr 2019 16:44:03 -0500 Subject: [PATCH] Include some missed some test files --- test/expect.js | 8 ++++++++ test/should.js | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/test/expect.js b/test/expect.js index 9b4f485..6c87a8e 100644 --- a/test/expect.js +++ b/test/expect.js @@ -3239,6 +3239,10 @@ describe('expect', function () { err(function() { expect(1.5, 'blah').to.be.closeTo(1.0, true); }, "blah: the arguments to closeTo or approximately must be numbers"); + + err(function() { + expect(1.5, 'blah').to.be.closeTo(1.0); + }, "blah: the arguments to closeTo or approximately must be numbers, and a delta is required"); }); it('approximately', function(){ @@ -3265,6 +3269,10 @@ describe('expect', function () { err(function() { expect(1.5).to.be.approximately(1.0, true); }, "the arguments to closeTo or approximately must be numbers"); + + err(function() { + expect(1.5).to.be.approximately(1.0); + }, "the arguments to closeTo or approximately must be numbers, and a delta is required"); }); it('oneOf', function() { diff --git a/test/should.js b/test/should.js index 9a2400d..b7e1d27 100644 --- a/test/should.js +++ b/test/should.js @@ -2796,6 +2796,10 @@ describe('should', function() { err(function() { (1.5).should.be.closeTo(1.0, true, 'blah'); }, "blah: the arguments to closeTo or approximately must be numbers"); + + err(function() { + (1.5).should.be.closeTo(1.0, undefined, 'blah'); + }, "blah: the arguments to closeTo or approximately must be numbers, and a delta is required"); }); it('approximately', function(){ @@ -2816,6 +2820,10 @@ describe('should', function() { err(function() { (1.5).should.be.approximately(1.0, true); }, "the arguments to closeTo or approximately must be numbers"); + + err(function() { + (1.5).should.be.approximately(1.0); + }, "the arguments to closeTo or approximately must be numbers, and a delta is required"); }); it('include.members', function() {