chai-things icon indicating copy to clipboard operation
chai-things copied to clipboard

Cannot read property 'replace' of undefined

Open idolize opened this issue 9 years ago • 0 comments

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)

idolize avatar Aug 27 '15 00:08 idolize