Created
July 22, 2020 16:00
-
-
Save sonicoder86/b2caa7a5419471cd91221af6bea2c381 to your computer and use it in GitHub Desktop.
Svelte Testing Crash Course - part 2
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
describe('toUpperCase', () => { | |
it('should convert string to upper case', () => { | |
// Arrange | |
const toUpperCase = info => info.toUpperCase(); | |
// Act | |
const result = toUpperCase('Click to modify'); | |
// Assert | |
expect(result).toEqual('CLICK TO MODIFY'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment