mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
documente un test qui laisse "open handles" dans jest (connexion BD)
This commit is contained in:
parent
93c9f10197
commit
5760469e60
1 changed files with 1 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ describe(
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
authConfigInstance.loadConfigTest(validModule); // On injecte la configuration mockée
|
authConfigInstance.loadConfigTest(validModule); // On injecte la configuration mockée
|
||||||
|
// TODO new AuthManager(...) essaie d'établir une connexion MongoDB et ça laisse un "open handle" dans Jest
|
||||||
authmanagerInstance = new AuthManager(expressMock,authConfigInstance.config);
|
authmanagerInstance = new AuthManager(expressMock,authConfigInstance.config);
|
||||||
authmanagerInstance.getUserModel();
|
authmanagerInstance.getUserModel();
|
||||||
expect(logSpy).toHaveBeenCalledTimes(0);
|
expect(logSpy).toHaveBeenCalledTimes(0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue