diff --git a/crates/fm-server/tests/api/morph.rs b/crates/fm-server/tests/api/morph.rs index fc7d84a..a9a251a 100644 --- a/crates/fm-server/tests/api/morph.rs +++ b/crates/fm-server/tests/api/morph.rs @@ -20,3 +20,23 @@ async fn can_call() -> eyre::Result<()> { Ok(()) } + +#[tokio::test] +async fn non_existent() -> eyre::Result<()> { + // Arrange + let app = TestApp::new().await?; + let client = reqwest::Client::new(); + + // Act + let response = client.get(app.url("/morph/löparsko/0")?).send().await?; + + // Assert + let status_code = response.status(); + + assert_eq!(status_code, StatusCode::NOT_FOUND); + + // let data: serde_json::Value = response.json().await?; + // insta::assert_json_snapshot!(data); + + Ok(()) +} diff --git a/graph.png b/graph.png new file mode 100644 index 0000000..0e459c7 Binary files /dev/null and b/graph.png differ