Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

containDeep erroneously passes when comparing array with a string value to a string value within object #157

Closed
seongju opened this issue Oct 16, 2017 · 1 comment

Comments

@seongju
Copy link

seongju commented Oct 16, 2017

I think I may have stumbled across a bug using containDeep.
screen shot 2017-10-16 at 11 33 12 am

According to the documentation, it seems that containDeep should have failed this assertion because for an object...

it checks that the same keys contain deep equal values (recursive)

Node.js version?

8.1.4

Should.js version?

11.2.1

How to reproduce it?

See above screenshot.

@btd
Copy link
Member

btd commented Oct 28, 2017

Yep, looks like a bug to me

@btd btd closed this as completed in 6a7989f Oct 28, 2017
btd added a commit that referenced this issue Oct 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants