From 1fce367fe5a0ef08ab7e1d954c1a2c09d55bc7e3 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Fri, 18 Aug 2017 10:16:04 +0300 Subject: [PATCH] fix Changed expect().to.be(undefined) -> expect().to.equal(undefined) expect().to.be is an Assertion object, not a Function without this correction, to.be() -> invokes Type Error expect().to.be is not a Function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f5b5df..a6bcc56 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Minimalistic BDD assertion toolkit based on [should.js](http://github.com/visionmedia/should.js) ```js -expect(window.r).to.be(undefined); +expect(window.r).to.equal(undefined); expect({ a: 'b' }).to.eql({ a: 'b' }) expect(5).to.be.a('number'); expect([]).to.be.an('array');