Created
August 2, 2023 20:33
-
-
Save willie-hung/7066b136deb68e0da20153d4fca6bd4a to your computer and use it in GitHub Desktop.
post_32
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
export const toUpperCase = (str: string) => str.toUpperCase(); | |
if (import.meta.vitest) { | |
const { it, expect } = import.meta.vitest; | |
it("toUpperCase", () => { | |
const result = toUpperCase("foobar"); | |
expect(result).toMatchSnapshot(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment