Skip to content

.toBeObject passes with null #88

Description

@JuanGalilea

yeah yeah i know null is typeof 'object' but idc.

Nobody relies on that and 99% of the time someone writes .toBeObject the mean it to be an actual object. Otherwise we wouldn't have the Array.isArray clause in there.

PS: Also a thing like .toBeNil would be nice

I can implement it but not today.

WDYT @ruocco-l ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions