diff --git a/crates/parser/src/codegen.rs b/crates/parser/src/codegen.rs index c4488bef..cbd24561 100644 --- a/crates/parser/src/codegen.rs +++ b/crates/parser/src/codegen.rs @@ -93,6 +93,19 @@ mod tests { ) } + #[test] + fn test_select_with_where() { + test_get_node_properties( + "select 1 from contact where id = 1;", + SyntaxKind::SelectStmt, + vec![ + TokenProperty::from(SyntaxKind::Select), + TokenProperty::from(SyntaxKind::From), + TokenProperty::from(SyntaxKind::Where), + ], + ) + } + #[test] fn test_create_domain() { test_get_node_properties(