Skip to content

Instantly share code, notes, and snippets.

@pepopowitz
Created January 28, 2018 04:35
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/351f22fb5c0d428102772a527f42aab1 to your computer and use it in GitHub Desktop.
Save pepopowitz/351f22fb5c0d428102772a527f42aab1 to your computer and use it in GitHub Desktop.
Chekhov's Gun - Noisy Test
describe("validateBeer", () => {
it("returns invalid for beers with no abv", () => {
const beer = {
id: 87983,
brewery: {
id: 12332,
name: "Central Waters",
location: "Amherst, WI",
overallRating: 5,
},
name: "Mudpuppy Porter",
beerStyle: "Porter",
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