From 5844e282e222f64a9df5e9b655c8a10a6055dc5c Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Mon, 24 Feb 2025 22:25:03 +0000 Subject: [PATCH] Add test --- backend/sync_server/src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/sync_server/src/utils.rs b/backend/sync_server/src/utils.rs index 03839c21..6289944f 100644 --- a/backend/sync_server/src/utils.rs +++ b/backend/sync_server/src/utils.rs @@ -69,6 +69,7 @@ mod test { #[test] fn test_sanitize_path() { assert_eq!(sanitize_path("/my/path/what?"), "/my/path/what"); + assert_eq!(sanitize_path("file (1).md"), "file (1).md"); assert_eq!(sanitize_path("/my/path/\\\\:?"), "/my/path/_"); }