Created
February 20, 2017 22:54
-
-
Save ricca509/15c35d079acfbd86e92a4d87bcb32cde to your computer and use it in GitHub Desktop.
snapshot-function-test
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
import { parseDate } from '..'; | |
describe('parseDate', () => { | |
it('parses a Date object', () => { | |
const expectedResult = { | |
day: 13, | |
month: 2, | |
year: 2017 | |
}; | |
const result = parseDate(2017, 1, 13); | |
expect(result).toEqual(expectedResult); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment