1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02: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) => {