use loco_rs::testing::prelude::*;
use serial_test::serial;
use termi_api::app::App;

#[tokio::test]
#[serial]
async fn can_get_tags() {
    request::<App, _, _>(|request, _ctx| async move {
        let res = request.get("/api/tags/").await;
        assert_eq!(res.status_code(), 200);

        // you can assert content like this:
        // assert_eq!(res.text(), "content");
    })
    .await;
}
