-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
This code:
import chai = require("chai");
import { expect } from 'chai';
import chaiIterator = require("chai-iterator");
chai.use(chaiIterator);
expect([2, 3, 5]).to.iterate.for.lengthOf(3);Throws the following error.
AssertionError: expected undefined to be iterable
Here is a repo with reproduction: https://github.com/nunof07/chai-iterator-test
Can't quite figure out is going wrong. _obj is undefined in Assertion.addProperty.
andyfusniak and soerenBoisen
Metadata
Metadata
Assignees
Labels
No labels