mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-19 08:14:52 +00:00
style: format source and test files
This commit is contained in:
1 parent
f451f4e421
commit
539afea737
34 files changed
+486
-295
No files matched your search
@@ -28,17 +28,13 @@ describe('Dashboard Auth', () => {
|
||||
|
||||
describe('getDashboardAuthConfig', () => {
|
||||
it('returns disabled by default', async () => {
|
||||
const { getDashboardAuthConfig } = await import(
|
||||
'../../src/config/unified-config-loader'
|
||||
);
|
||||
const { getDashboardAuthConfig } = await import('../../src/config/unified-config-loader');
|
||||
const config = getDashboardAuthConfig();
|
||||
expect(config.enabled).toBe(false);
|
||||
});
|
||||
|
||||
it('returns 24 hour default session timeout', async () => {
|
||||
const { getDashboardAuthConfig } = await import(
|
||||
'../../src/config/unified-config-loader'
|
||||
);
|
||||
const { getDashboardAuthConfig } = await import('../../src/config/unified-config-loader');
|
||||
const config = getDashboardAuthConfig();
|
||||
expect(config.session_timeout_hours).toBe(24);
|
||||
});
|
||||
@@ -89,12 +85,7 @@ describe('Dashboard Auth', () => {
|
||||
});
|
||||
|
||||
describe('public paths', () => {
|
||||
const PUBLIC_PATHS = [
|
||||
'/api/auth/login',
|
||||
'/api/auth/check',
|
||||
'/api/auth/setup',
|
||||
'/api/health',
|
||||
];
|
||||
const PUBLIC_PATHS = ['/api/auth/login', '/api/auth/check', '/api/auth/setup', '/api/health'];
|
||||
|
||||
it('identifies public paths correctly', () => {
|
||||
const isPublicPath = (path: string) =>
|
||||
|
||||
Reference in new issue
Block a user