Files
movies-diary/crates/application/tests/search/execute_test.rs
Gabriel Kaszewski 017b58d6fa
Some checks failed
CI / Check / Test (push) Has been cancelled
code refactor
Reviewed-on: #26
2026-10-26 09:36:23 +00:00

21 lines
513 B
Rust

use domain::models::SearchQuery;
use crate::support::TestContextBuilder;
use application::search::deps::SearchDeps;
use application::search::execute;
#[tokio::test]
async fn returns_empty_results() {
let b = TestContextBuilder::new();
let deps = SearchDeps {
search_port: b.search_port.clone(),
};
let result = execute::execute(&deps, SearchQuery::default())
.await
.unwrap();
assert!(result.movies.items.is_empty());
assert!(result.people.items.is_empty());
}