diff --git a/frontend/src/components/Auth/__tests__/Login.oidc.test.tsx b/frontend/src/components/Auth/__tests__/Login.oidc.test.tsx index 2f13016..2eb89da 100644 --- a/frontend/src/components/Auth/__tests__/Login.oidc.test.tsx +++ b/frontend/src/components/Auth/__tests__/Login.oidc.test.tsx @@ -1,4 +1,5 @@ import { describe, test, expect } from 'vitest'; +import Login from '../Login'; // Basic existence test for Login component // More complex auth tests require comprehensive context mocking which @@ -10,10 +11,9 @@ describe('Login - OIDC Features - Simplified', () => { expect(true).toBe(true); }); - test('Component module structure is valid', async () => { - // Test that the module can be imported dynamically - const module = await import('../Login'); - expect(module).toBeDefined(); - expect(module.default).toBeDefined(); + test('Component module structure is valid', () => { + // Test that the module can be imported statically + expect(Login).toBeDefined(); + expect(typeof Login).toBe('function'); }); }); \ No newline at end of file diff --git a/src/webdav_xml_parser.rs b/src/webdav_xml_parser.rs index 08e98e1..3d1e734 100644 --- a/src/webdav_xml_parser.rs +++ b/src/webdav_xml_parser.rs @@ -538,7 +538,7 @@ pub fn normalize_etag(etag: &str) -> String { // Handle empty ETags or whitespace-only ETags if result.trim().is_empty() { - return "empty".to_string(); // Provide a consistent fallback + return "".to_string(); // Return empty string for empty ETags } result