Skip to content

Instantly share code, notes, and snippets.

@glcheetham
Created May 30, 2016 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glcheetham/3545de6b7360069d328c854ae488faca to your computer and use it in GitHub Desktop.
Save glcheetham/3545de6b7360069d328c854ae488faca to your computer and use it in GitHub Desktop.
Chai object comparison (wrong)
expect({
name: 'Tiger',
species: 'Felis Catus',
favouriteSnack: 'Tuna',
schedule: {
breakfast: '08:00',
naptime: '10:00',
dinner: '12:00',
tea: '18:00'
}
}).to.equal({
name: 'Tiger',
species: 'Felis Catus',
favouriteSnack: 'Tuna',
schedule: {
breakfast: '08:00',
naptime: '10:00',
dinner: '12:00',
tea: '18:00'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment