Last active
August 29, 2015 14:18
-
-
Save NickHeiner/9bb58318d026fcc59135 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const writtenManifest = readJson('test-dir/manifest.json'); | |
// bad | |
expect(manifest).to.deep.equal({ | |
// One giant hardcoded object, including fields we are about... | |
foo: 'bar', | |
odp: 'quux', | |
// ...and fields we don't | |
superfluousField: 'We do not really care about this field ' | |
+ 'but we are still asserting on it' | |
}); | |
// good | |
expect(manifest).to.have.property('foo', 'bar'); | |
expect(manifest).to.have.property('odp', 'quux'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment