Fix tests

This commit is contained in:
Connor Yoh 2025-08-22 10:19:12 +01:00
parent 065e120a3c
commit 04a2feff4e
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ describe('useChangePermissionsOperation', () => {
{ property: 'multiFileEndpoint' as const, expectedValue: false }, { property: 'multiFileEndpoint' as const, expectedValue: false },
{ property: 'endpoint' as const, expectedValue: '/api/v1/security/add-password' }, { property: 'endpoint' as const, expectedValue: '/api/v1/security/add-password' },
{ property: 'filePrefix' as const, expectedValue: 'permissions_' }, { property: 'filePrefix' as const, expectedValue: 'permissions_' },
{ property: 'operationType' as const, expectedValue: 'changePermissions' } { property: 'operationType' as const, expectedValue: 'change-permissions' }
])('should configure $property correctly', ({ property, expectedValue }) => { ])('should configure $property correctly', ({ property, expectedValue }) => {
renderHook(() => useChangePermissionsOperation()); renderHook(() => useChangePermissionsOperation());

View File

@ -409,7 +409,7 @@ describe('Convert Tool Integration Tests', () => {
// Verify integration: utils validation prevents API call, hook shows error // Verify integration: utils validation prevents API call, hook shows error
expect(mockedAxios.post).not.toHaveBeenCalled(); expect(mockedAxios.post).not.toHaveBeenCalled();
expect(result.current.errorMessage).toContain('errorNotSupported'); expect(result.current.errorMessage).toContain('Unsupported conversion format');
expect(result.current.isLoading).toBe(false); expect(result.current.isLoading).toBe(false);
expect(result.current.downloadUrl).toBe(null); expect(result.current.downloadUrl).toBe(null);
}); });