diff --git a/Dockerfile b/Dockerfile index 8b0b04b..086648b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:alpine as files +ENV TZ="Europe/Berlin" WORKDIR /app - COPY [ "package-lock.json", "package.json", "index.ts", "tsconfig.json", "./" ] COPY server ./server @@ -18,5 +18,4 @@ RUN npm ci FROM dependencies as test COPY jest.config.js . COPY tests ./tests - RUN npm run test diff --git a/tests/helpers/date.test.ts b/tests/helpers/date.test.ts index 176ff88..52f7ff9 100644 --- a/tests/helpers/date.test.ts +++ b/tests/helpers/date.test.ts @@ -10,7 +10,7 @@ function getTestDate(date: string): GuildScheduledEvent { return { scheduledStartAt: new Date(date) } } test('createDateStringFromEvent - correct formatting', () => { - expect(createDateStringFromEvent(getTestDate('01-01-2023 12:30'), "")).toEqual('heute um 13:30') - expect(createDateStringFromEvent(getTestDate('01-02-2023 12:30'), "")).toEqual('am Montag 02.01 um 13:30') - expect(createDateStringFromEvent(getTestDate('01-03-2023 12:30'), "")).toEqual('am Dienstag 03.01 um 13:30') + expect(createDateStringFromEvent(getTestDate('01-01-2023 12:30'), "")).toEqual('heute um 12:30') + expect(createDateStringFromEvent(getTestDate('01-02-2023 12:30'), "")).toEqual('am Montag 02.01 um 12:30') + expect(createDateStringFromEvent(getTestDate('01-03-2023 12:30'), "")).toEqual('am Dienstag 03.01 um 12:30') })