Created
January 28, 2018 04:40
-
-
Save pepopowitz/a040550875911ea2668c7a3f58f2a1f2 to your computer and use it in GitHub Desktop.
Chekhov's Gun - Better Test
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
describe("validateBeer", () => { | |
it("returns invalid for beers with no abv (less setup)", () => { | |
const beer = makeMeABeer({ | |
abv: undefined, | |
}); | |
const result = validateBeer(beer); | |
expect(result).toEqual(false); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment