Skip to content

Instantly share code, notes, and snippets.

@mbjelac
Last active April 26, 2022 20:51
Show Gist options
  • Save mbjelac/c48cda617f64b684f989f91e2a42c5d9 to your computer and use it in GitHub Desktop.
Save mbjelac/c48cda617f64b684f989f91e2a42c5d9 to your computer and use it in GitHub Desktop.
multiple-asserts-bad_3
test("turns on credit check ... and also that other thing", () => {
const result = initializeCreditThingy(42, "boo!!!");
expect({
creditCheck: result.creditCheck,
spamCounter: result.spamCounter
})
.toEqual({
creditCheck: true,
spamCounter: 0
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment