mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
10 lines
438 B
TypeScript
10 lines
438 B
TypeScript
describe('userManagement.jwtRefreshTimeoutHours', () => {
|
|
it("resets jwtRefreshTimeoutHours to 0 if it's greater than or equal to jwtSessionDurationHours", async () => {
|
|
process.env.N8N_USER_MANAGEMENT_JWT_DURATION_HOURS = '1';
|
|
process.env.N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS = '1';
|
|
const { default: config } = await import('@/config');
|
|
|
|
expect(config.getEnv('userManagement.jwtRefreshTimeoutHours')).toBe(0);
|
|
});
|
|
});
|