mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
Include some missed some test files
This commit is contained in:
parent
8d6330cc04
commit
6bfd2fd131
2 changed files with 16 additions and 0 deletions
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue