From c58d92cac490e6e87b0e3de0c50ab544427fcd62 Mon Sep 17 00:00:00 2001 From: Travis Jeffery Date: Sun, 29 Dec 2013 15:41:10 -0500 Subject: [PATCH] Fix docs for `should()` (close #162) --- Readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index f03004a..73cab13 100644 --- a/Readme.md +++ b/Readme.md @@ -16,7 +16,10 @@ var user = { user.should.have.property('name', 'tj'); user.should.have.property('pets').with.lengthOf(4); -// or without Object.prototype, for guys how did Object.create(null) +// if the object was created with Object.create(null) +// then it doesn't inherit `Object` and have the `should` getter +// so you can do: + should(user).have.property('name', 'tj'); should(true).ok;