diff --git a/src/app/browser/window/tab/item/page/navigation/request.rs b/src/app/browser/window/tab/item/page/navigation/request.rs index 694c3d6b..2d2d24c7 100644 --- a/src/app/browser/window/tab/item/page/navigation/request.rs +++ b/src/app/browser/window/tab/item/page/navigation/request.rs @@ -1,4 +1,5 @@ mod database; +mod test; mod widget; use widget::Widget; diff --git a/src/app/browser/window/tab/item/page/navigation/request/test.rs b/src/app/browser/window/tab/item/page/navigation/request/test.rs new file mode 100644 index 00000000..1223933d --- /dev/null +++ b/src/app/browser/window/tab/item/page/navigation/request/test.rs @@ -0,0 +1,6 @@ +#[cfg(test)] +#[test] +fn strip_prefix() { + assert_eq!(super::strip_prefix("source:gemini".into()), "gemini"); + assert_eq!(super::strip_prefix("download:gemini".into()), "gemini"); +}