test(core): Move unit tests closer to testable components (no-changelog) (#10287)
This commit is contained in:
9
packages/cli/src/config/__tests__/index.test.ts
Normal file
9
packages/cli/src/config/__tests__/index.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user