From 768fb2039745dcc375d8ac1e43224ba69d1fd47b Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 20 Sep 2023 21:37:33 +0200 Subject: [PATCH] Add await to config loading --- .../backend/unit/model/fileprocessing/PhotoProcessing.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/backend/unit/model/fileprocessing/PhotoProcessing.spec.ts b/test/backend/unit/model/fileprocessing/PhotoProcessing.spec.ts index c3e5e414..bf40be07 100644 --- a/test/backend/unit/model/fileprocessing/PhotoProcessing.spec.ts +++ b/test/backend/unit/model/fileprocessing/PhotoProcessing.spec.ts @@ -10,7 +10,7 @@ describe('PhotoProcessing', () => { /* eslint-disable no-unused-expressions,@typescript-eslint/no-unused-expressions */ it('should generate converted file path', async () => { - Config.load(); + await Config.load(); Config.Media.Thumbnail.thumbnailSizes = []; ProjectPath.ImageFolder = path.join(__dirname, './../../../assets'); const photoPath = path.join(ProjectPath.ImageFolder, 'test_png.png'); @@ -36,7 +36,7 @@ describe('PhotoProcessing', () => { /* eslint-disable no-unused-expressions,@typescript-eslint/no-unused-expressions */ it('should generate converted thumbnail path', async () => { - Config.load(); + await Config.load(); Config.Media.Photo.Converting.resolution = (null as any); Config.Media.Thumbnail.thumbnailSizes = [10, 20]; ProjectPath.ImageFolder = path.join(__dirname, './../../../assets');