Skip to content

Instantly share code, notes, and snippets.

@0xR
Created November 2, 2016 17:16
Show Gist options
  • Save 0xR/f9bc9fddfcedf660983fdfb77d976a54 to your computer and use it in GitHub Desktop.
Save 0xR/f9bc9fddfcedf660983fdfb77d976a54 to your computer and use it in GitHub Desktop.
// Chai
expect({ a: 1 }).to.deep.equal({ a: 1 });
expect({ a: 1 }).not.to.deep.equal({ a: 2 });
// Jest / jasmine
expect({ a: 1 }).toEqual({ a: 1 });
expect({ a: 1 }).not.toEqual({ a: 2 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment