From e6c3dc8af13e7f92b4391297ed5e6095d0d04c4e Mon Sep 17 00:00:00 2001 From: tassio Date: Sat, 31 Mar 2018 18:27:20 +0200 Subject: [PATCH 1/2] fix empty functions for types --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7f5b5df..c6fae79 100644 --- a/README.md +++ b/README.md @@ -106,11 +106,11 @@ expect([1,2,3]).to.have.length(3); **empty**: asserts that an array is empty or not ```js -expect([]).to.be.empty(); -expect({}).to.be.empty(); -expect({ length: 0, duck: 'typing' }).to.be.empty(); -expect({ my: 'object' }).to.not.be.empty(); -expect([1,2,3]).to.not.be.empty(); +expect([]).to.be.empty; +expect({}).to.be.empty; +expect({ length: 0, duck: 'typing' }).to.not.be.empty; +expect({ my: 'object' }).to.not.be.empty; +expect([1,2,3]).to.not.be.empty; ``` **property**: asserts presence of an own property (and value optionally) From aba9c2064b4216fa6ad2d7b94ca6a6b5089293f4 Mon Sep 17 00:00:00 2001 From: tassio Date: Sat, 31 Mar 2018 19:02:23 +0200 Subject: [PATCH 2/2] remove "only" for keys function --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c6fae79..d7ef344 100644 --- a/README.md +++ b/README.md @@ -125,9 +125,9 @@ expect({a: 'b'}).to.have.property('a'); ```js expect({ a: 'b' }).to.have.key('a'); -expect({ a: 'b', c: 'd' }).to.only.have.keys('a', 'c'); -expect({ a: 'b', c: 'd' }).to.only.have.keys(['a', 'c']); -expect({ a: 'b', c: 'd' }).to.not.only.have.key('a'); +expect({ a: 'b', c: 'd' }).to.have.keys('a', 'c'); +expect({ a: 'b', c: 'd' }).to.have.keys(['a', 'c']); +expect({ a: 'b', c: 'd' }).to.not.have.key('a'); ``` **throw**/**throwException**/**throwError**: asserts that the `Function` throws or not when called