pinakes-server: update tests for chunked upload manager
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I0f08a53475348f708e0d23b235b344916a6a6964
This commit is contained in:
parent
419e1d233b
commit
fe52fedd88
3 changed files with 8 additions and 3 deletions
|
|
@ -411,9 +411,11 @@ And an embedded image: ![[diagram.png]]
|
|||
|
||||
// Should include relative path and .md variations
|
||||
assert!(!candidates.is_empty());
|
||||
assert!(candidates
|
||||
.iter()
|
||||
.any(|p| p.to_string_lossy().contains("My Note.md")));
|
||||
assert!(
|
||||
candidates
|
||||
.iter()
|
||||
.any(|p| p.to_string_lossy().contains("My Note.md"))
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ async fn setup_app() -> axum::Router {
|
|||
plugin_manager: None,
|
||||
transcode_service: None,
|
||||
managed_storage: None,
|
||||
chunked_upload_manager: None,
|
||||
};
|
||||
|
||||
pinakes_server::app::create_router(state)
|
||||
|
|
@ -232,6 +233,7 @@ async fn setup_app_with_auth() -> (axum::Router, String, String, String) {
|
|||
plugin_manager: None,
|
||||
transcode_service: None,
|
||||
managed_storage: None,
|
||||
chunked_upload_manager: None,
|
||||
};
|
||||
|
||||
let app = pinakes_server::app::create_router(state);
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ async fn setup_app_with_plugins() -> (axum::Router, Arc<PluginManager>, tempfile
|
|||
plugin_manager: Some(plugin_manager.clone()),
|
||||
transcode_service: None,
|
||||
managed_storage: None,
|
||||
chunked_upload_manager: None,
|
||||
};
|
||||
|
||||
let router = pinakes_server::app::create_router(state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue