-
-
Save elliotlarson/2db89659c16e73704f2ade954e9ab870 to your computer and use it in GitHub Desktop.
This file contains 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
// You don't need to type cast the integer `deleteId` to a string in the | |
// browser, but when running Jest specs, I found that I had to cast to a | |
// string. Maybe this is a difference between browser JS and Node, which | |
// the tests run in? | |
const { [`${deleteId}`]: deleted, ...newCharacters } = characters; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment