Last active
September 2, 2015 19:27
-
-
Save dylanpyle/dcd78af39ab3d2ee4e97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coffee> ({ a: 1, b: 2, c: 3}).should.have.properties({ a: 1, b: 2 }) | |
(success) | |
coffee> ({ a: 1, b: 2, c: 3}).should.have.properties({ a: 1, b: 3 }) | |
AssertionError: expected { a: 1, b: 2, c: 3 } to have property b of 3 (got 2) | |
coffee> ({ a: 1, b: 2, c: 3}).should.have.containEql({ a: 1, b: 2 }) | |
(success) | |
coffee> ({ a: 1, b: 2, c: 3}).should.have.containEql({ a: 1, b: 3 }) | |
AssertionError: expected { a: 1, b: 2, c: 3 } to contain { a: 1, b: 3 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ha, the
have
in thecontainEql
lines wasn't necessary but didn't appear to change anything