You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-07 23:23:49 +02:00
Add await to config loading
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user