From 1357efa0e307e0b8c2a13dc60c3453e6832fb170 Mon Sep 17 00:00:00 2001 From: cchalopin Date: Sun, 26 Nov 2023 15:17:27 +0100 Subject: [PATCH] feat(update app): fix tests --- src/server/services/apps/apps.service.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/services/apps/apps.service.test.ts b/src/server/services/apps/apps.service.test.ts index d9be220a..87d4da4a 100644 --- a/src/server/services/apps/apps.service.test.ts +++ b/src/server/services/apps/apps.service.test.ts @@ -477,7 +477,7 @@ describe('Update app', () => { it('Should correctly update app', async () => { // arrange const appConfig = createAppConfig({}); - await insertApp({ version: 12, config: { TEST_FIELD: 'test' } }, appConfig, db); + await insertApp({ version: 12, status: 'running', config: { TEST_FIELD: 'test' } }, appConfig, db); // act await updateApp(appConfig.id, { version: 0 }, db); @@ -487,7 +487,7 @@ describe('Update app', () => { expect(app).toBeDefined(); expect(app?.config).toStrictEqual({ TEST_FIELD: 'test' }); expect(app?.version).toBe(appConfig.tipi_version); - expect(app?.status).toBe('stopped'); + expect(app?.status).toBe('running'); }); it("Should throw if app doesn't exist", async () => {