mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Add await to config loading
This commit is contained in:
parent
617a0bbd76
commit
768fb20397
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user