1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-03 23:00:25 +02:00

Loading default settings before evaluating MetadataLoader

This commit is contained in:
Patrik J. Braun
2021-05-11 15:57:36 +02:00
parent 032a5f4863
commit 4ab1f558d1
4 changed files with 9 additions and 5 deletions

View File

@@ -4,8 +4,11 @@ import {Utils} from '../../../../../src/common/Utils';
import * as path from 'path';
import * as fs from 'fs';
import {PhotoProcessing} from '../../../../../src/backend/model/fileprocessing/PhotoProcessing';
import {Config} from '../../../../../src/common/config/private/Config';
describe('MetadataLoader', () => {
// loading default settings (this might have been changed by other tests
Config.loadSync();
it('should load png', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/test_png.png'));