add tests for tera/log.rs

Closes #34
This commit is contained in:
2023-07-31 20:09:03 +02:00
parent 8b5be3fb41
commit 3730940aed
3 changed files with 164 additions and 5 deletions

View File

@ -347,9 +347,9 @@ mod test {
fn test_on_water() {
let pool = testdb!();
let logbook = Logbook::find_by_id(&pool, 1).await.unwrap();
let logbookWithDetails = Logbook::on_water(&pool).await;
let logbook_with_details = Logbook::on_water(&pool).await;
assert_eq!(logbookWithDetails[0].logbook, logbook);
assert_eq!(logbook_with_details[0].logbook, logbook);
}
#[sqlx::test]