Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'replace' of undefined #19

Open
idolize opened this issue Aug 27, 2015 · 0 comments
Open

Cannot read property 'replace' of undefined #19

idolize opened this issue Aug 27, 2015 · 0 comments

Comments

@idolize
Copy link

idolize commented Aug 27, 2015

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant