Fix User.login credentials check and flush Redis before tests

This commit is contained in:
2026-07-22 22:37:45 -04:00
parent e910a492ba
commit f76d93d840
6 changed files with 47 additions and 7868 deletions
+6
View File
@@ -7,6 +7,12 @@ const { initORM } = require('../models');
beforeAll(async () => {
await initORM();
const { Token } = require('../models');
try {
await Token.orm.adapter(Token).Table.redisClient.flushDb();
} catch (e) {
console.warn('Could not flush Redis:', e.message);
}
});
const TEST_CREDS = { uid: 'test', password: 'MyTestPassword!2' };