Created
September 30, 2017 23:57
-
-
Save Rolilink/61b2bbbb4e71d2c452824665504d3c31 to your computer and use it in GitHub Desktop.
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
| const sum = (n1, n2) => (n1 + n2); | |
| describe('#sum', () => { | |
| it('should add both numbers', () => { | |
| expect(sum(1,2)).toMatchSnapshot(); | |
| }); | |
| }); |
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
| // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| exports[`#sum should add both numbers 1`] = `3`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment