tests(cmd): ensure insert statement works

This commit is contained in:
Khaïs COLIN 2025-05-03 21:13:46 +02:00
parent 1f90d0acc3
commit 75c3c74bba
3 changed files with 20 additions and 1 deletions

View file

@ -101,3 +101,16 @@ impl std::str::FromStr for Command {
}
}
}
#[cfg(test)]
mod tests {
use crate::{command::Command, statements::Statement};
use insta::assert_snapshot;
#[test]
fn test_execute_insert_statement() {
let statement: Command = Statement::Insert.into();
let result = statement.execute().display();
assert_snapshot!(result);
}
}