Commit 6e128a1
committed
fix(test): tighten object type check to reject null
expect(typeof x).toBe('object') passes for null (typeof null === 'object'),
weakening chai's .to.be.an('object'). Use expect.any(Object) which rejects
null/undefined/primitives.1 parent 2002667 commit 6e128a1
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
331 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
0 commit comments