Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.lengthOf should work for sets and maps #1110

@rijnhard

Description

@rijnhard

sets and maps use a different property .size for their length but in the context of chai it should work the same way.

expect(new Set([1])).to.have.lengthOf(1);
// currently UncaughtException AssertionError: expected {} to have property 'length'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions