Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell committed Oct 8, 2019
1 parent 23c19d9 commit b90cee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/i18n/date-helper.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ describe('DateHelperService', () => {

it('should do formatting correctly', () => {
const date = new Date('2018-12-31 12:11:10');
expect(dateHelper.format(date, 'YYYY-MM-DD')).toBe('2018-12-31');
// After updating to 2.x, use yyyy instead of YYYY.
expect(dateHelper.format(date, 'yyyy-MM-DD')).toBe('2018-12-31');
expect(dateHelper.format(date, 'WW')).toBe('01'); // ISO week
});
});
Expand Down

0 comments on commit b90cee8

Please sign in to comment.