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');