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

Adding object managers init to tests

This commit is contained in:
Patrik J. Braun 2023-09-20 19:05:56 +02:00
parent 9ebb9d46b7
commit 8d22141e88

View File

@ -21,6 +21,7 @@ describe('Settings middleware', () => {
beforeEach(async () => { beforeEach(async () => {
await ObjectManagers.reset(); await ObjectManagers.reset();
await fs.promises.rm(tempDir, {recursive: true, force: true}); await fs.promises.rm(tempDir, {recursive: true, force: true});
await ObjectManagers.InitSQLManagers();
}); });
it('should save empty enforced users settings', (done: (err?: any) => void) => { it('should save empty enforced users settings', (done: (err?: any) => void) => {