Skip to content

Instantly share code, notes, and snippets.

@dylanpyle
Last active September 2, 2015 19:27
Show Gist options
  • Save dylanpyle/dcd78af39ab3d2ee4e97 to your computer and use it in GitHub Desktop.
Save dylanpyle/dcd78af39ab3d2ee4e97 to your computer and use it in GitHub Desktop.
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 }
@dylanpyle
Copy link
Author

ha, the have in the containEql lines wasn't necessary but didn't appear to change anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment