Skip to content

Instantly share code, notes, and snippets.

@pepopowitz
Created January 28, 2018 04:40
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 pepopowitz/a040550875911ea2668c7a3f58f2a1f2 to your computer and use it in GitHub Desktop.
Save pepopowitz/a040550875911ea2668c7a3f58f2a1f2 to your computer and use it in GitHub Desktop.
Chekhov's Gun - Better Test
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