chai-things
chai-things copied to clipboard
Cannot read property 'replace' of undefined
Getting the following error when trying to use in conjunction with chai-shallow-deep-equal:
Cannot read property 'replace' of undefined
+ expected - actual
at Context.<anonymous> (test/middleware/scheduler.spec.js:52:37)
51 | dispatched
52 | ).to.include.something.which.is.shallowDeepEqual({
53 | type: SCHEDULED_ACTION,
Since chai-shallow-deep-equal
does not use replace
anywhere, I assume the bug is with the way this library attempts to reformat the error message output?
(It works correctly when the shallowDeepEqual
check succeeds - no error occurs)