| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0b6a84a commit 84efadf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,11 @@ assert.strictEqual(util.isError([]), false); | |||
| 73 | 73 | assert.strictEqual(util.isError(Object.create(Error.prototype)), true); | |
| 74 | 74 | ||
| 75 | 75 | // isObject | |
| 76 | - assert.ok(util.isObject({}) === true); | ||
| 76 | + assert.strictEqual(util.isObject({}), true); | ||
| 77 | + assert.strictEqual(util.isObject([]), true); | ||
| 78 | + assert.strictEqual(util.isObject(new Number(3)), true); | ||
| 79 | + assert.strictEqual(util.isObject(Number(4)), false); | ||
| 80 | + assert.strictEqual(util.isObject(1), false); | ||
| 77 | 81 | ||
| 78 | 82 | // isPrimitive | |
| 79 | 83 | assert.strictEqual(util.isPrimitive({}), false); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments