Created
July 10, 2018 20:25
-
-
Save Bajena/dd429d3c91d6396999fb95342e0e77b0 to your computer and use it in GitHub Desktop.
Simple jest test
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
const DateUtils = require('../src/DateUtils.js'); | |
test('getDatePart', () => { | |
const date = new Date('2018-07-09'); | |
expect(DateUtils.getDatePart(date)).toBe('2018-07-09'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment