diff --git a/goofy-client/libs/tech-shared/src/lib/pipe/format-to-pretty-date.pipe.spec.ts b/goofy-client/libs/tech-shared/src/lib/pipe/format-to-pretty-date.pipe.spec.ts index 2a262f9fd3544653c9b95133a89c7ce9bf3f076d..d322cd729084e90250c1a450221d07e5a014c20b 100644 --- a/goofy-client/libs/tech-shared/src/lib/pipe/format-to-pretty-date.pipe.spec.ts +++ b/goofy-client/libs/tech-shared/src/lib/pipe/format-to-pretty-date.pipe.spec.ts @@ -13,14 +13,13 @@ describe('FormatToPrettyDatePipe', () => { }); - //TODO: Test stabiler machen it('should return formatted for this year', () => { - const date: Date = new Date(); - date.setDate(date.getDate() + 3); + const year: number = new Date().getFullYear(); + const date: Date = new Date(year + '-01-01'); const result: string = pipe.transform(date); - expect(result.length).toBeLessThan(9); + expect(result).toBe('01. Jan.'); }) it('should format in "dd.MM.yyyy"', () => { diff --git a/goofy-client/pom.xml b/goofy-client/pom.xml index cb89fa9745764f69d64a9c6f3137c67d7c88d99d..f89b5a8ad22cf1c6668063071e6013a220e3eba3 100644 --- a/goofy-client/pom.xml +++ b/goofy-client/pom.xml @@ -5,7 +5,7 @@ <parent> <groupId>de.itvsh.ozg</groupId> <artifactId>goofy</artifactId> - <version>0.29.0-SNAPSHOT</version> + <version>0.30.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> diff --git a/goofy-server/pom.xml b/goofy-server/pom.xml index d9a4b759fc8de8b4ccdeadf35bd0d55513324591..9ce5736289f72c904258ab7bfc591954bba0bccd 100644 --- a/goofy-server/pom.xml +++ b/goofy-server/pom.xml @@ -7,7 +7,7 @@ <parent> <groupId>de.itvsh.ozg</groupId> <artifactId>goofy</artifactId> - <version>0.29.0-SNAPSHOT</version> + <version>0.30.0-SNAPSHOT</version> </parent> <artifactId>goofy-server</artifactId> diff --git a/pom.xml b/pom.xml index 50400021ac11fc2221d14882cc59a3ff6959d0ea..8e1796518bc48e04f574ab18a6a2dce7e4a69c4b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,14 +5,14 @@ <groupId>de.itvsh.ozg</groupId> <artifactId>goofy</artifactId> - <version>0.29.0-SNAPSHOT</version> + <version>0.30.0-SNAPSHOT</version> <name>Goofy Parent</name> <packaging>pom</packaging> <parent> <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common-parent</artifactId> - <version>1.1.3</version> + <version>1.1.5</version> </parent> <modules> @@ -24,7 +24,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - <pluto.version>0.29.0-SNAPSHOT</pluto.version> + <pluto.version>0.30.0-SNAPSHOT</pluto.version> <jsoup.version>1.15.1</jsoup.version> </properties>