Skip to content

Commit

Permalink
finish refactoring test to match new API :^)
Browse files Browse the repository at this point in the history
  • Loading branch information
FayCarsons committed Mar 17, 2024
1 parent 4a2dbfa commit 45c72c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/tests/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ mod tests {
let req = test::TestRequest::get().uri("/stock").to_request();
let dummy = test::call_service(&app, req).await;
assert!(dummy.status().is_success());
let req = test::TestRequest::get().uri("/stock/get").to_request();
let req = test::TestRequest::get().uri("/stock").to_request();
let _: HashMap<ItemId, InputItem> = test::try_call_and_read_body_json(&app, req)
.await
.expect("Cannot deserialize body");
Expand Down

0 comments on commit 45c72c1

Please sign in to comment.