fix(routines): run cron checks immediately on ticker startup (#1066)

* fix(routines): run cron check immediately at ticker startup

* test/ci: add routine_engine test and fix style lint drift
This commit is contained in:
Nige
2026-03-12 15:04:21 -07:00
committed by GitHub
parent 442a42d996
commit 7a9cbb3b50
2 changed files with 31 additions and 2 deletions
+20
View File
@@ -636,3 +636,23 @@ mod tests {
assert_eq!(schema["properties"]["depth"]["default"], 1);
}
}
#[cfg(test)]
mod path_routing_tests {
use super::looks_like_filesystem_path;
#[test]
fn detects_filesystem_paths() {
assert!(looks_like_filesystem_path("/Users/nige/file.md"));
assert!(looks_like_filesystem_path("C:\\Users\\nige\\file.md"));
assert!(looks_like_filesystem_path("D:/work/file.md"));
assert!(looks_like_filesystem_path("~/notes.md"));
}
#[test]
fn allows_workspace_memory_paths() {
assert!(!looks_like_filesystem_path("MEMORY.md"));
assert!(!looks_like_filesystem_path("daily/2026-03-11.md"));
assert!(!looks_like_filesystem_path("projects/alpha/notes.md"));
}
}