Skip to content
Snippets Groups Projects
Commit a0a89db3 authored by OZGCloud's avatar OZGCloud
Browse files

Merge remote-tracking branch 'origin/master' into release

parents b08d6331 c319539a
Branches
Tags
No related merge requests found
...@@ -13,14 +13,13 @@ describe('FormatToPrettyDatePipe', () => { ...@@ -13,14 +13,13 @@ describe('FormatToPrettyDatePipe', () => {
}); });
//TODO: Test stabiler machen
it('should return formatted for this year', () => { it('should return formatted for this year', () => {
const date: Date = new Date(); const year: number = new Date().getFullYear();
date.setDate(date.getDate() + 3); const date: Date = new Date(year + '-01-01');
const result: string = pipe.transform(date); const result: string = pipe.transform(date);
expect(result.length).toBeLessThan(9); expect(result).toBe('01. Jan.');
}) })
it('should format in "dd.MM.yyyy"', () => { it('should format in "dd.MM.yyyy"', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment