Skip to content

Commit

Permalink
Add test for SelectQuery.selectAll
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Nov 11, 2024
1 parent 60b0f1f commit a0b557f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/query_builder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ void main() {
expect(query.build().asString(), "SELECT * FROM test WHERE name = 'test';");
});

test("Simple select all", () {
final query = SelectQuery.selectAll("test")
..andWhere("name = 'test'");

expect(query.build().asString(), "SELECT * FROM test WHERE name = 'test';");
});

test("Select without where", () {
final query = SelectQuery("test")..select("*");

Expand Down

0 comments on commit a0b557f

Please sign in to comment.