1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

test logging..

This commit is contained in:
Patrik J. Braun 2024-03-26 00:15:58 +01:00
parent 01e6b60aa4
commit fc20126f0e
2 changed files with 3 additions and 1 deletions

View File

@ -117,6 +117,7 @@ export class RenderingMWs {
skipTags: {secret: true} as TAGS skipTags: {secret: true} as TAGS
}) as PrivateConfigClass)); }) as PrivateConfigClass));
console.log(originalConfJSON);
const message = new Message<PrivateConfigClass>( const message = new Message<PrivateConfigClass>(
null, null,
originalConfJSON originalConfJSON

View File

@ -22,7 +22,7 @@ describe('SettingsRouter', () => {
await fs.promises.rm(TestHelper.TMP_DIR, {recursive: true, force: true}); await fs.promises.rm(TestHelper.TMP_DIR, {recursive: true, force: true});
Config.Database.type = DatabaseType.sqlite; Config.Database.type = DatabaseType.sqlite;
Config.Database.dbFolder = TestHelper.TMP_DIR; Config.Database.dbFolder = TestHelper.TMP_DIR;
Config.Extensions.enabled = false; Config.Extensions.folder = 'notexisting';
ProjectPath.reset(); ProjectPath.reset();
server = new Server(false); server = new Server(false);
@ -48,6 +48,7 @@ describe('SettingsRouter', () => {
attachVolatile: true, attachVolatile: true,
skipTags: {secret: true} as TAGS skipTags: {secret: true} as TAGS
}))); })));
console.log(originalJSON);
const result = await chai.request(server.Server) const result = await chai.request(server.Server)
.get(Config.Server.apiPath + '/settings'); .get(Config.Server.apiPath + '/settings');