Last active
April 26, 2022 20:51
-
-
Save mbjelac/c48cda617f64b684f989f91e2a42c5d9 to your computer and use it in GitHub Desktop.
multiple-asserts-bad_3
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
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