Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✅ Fix query unit tests + Bump package_info_plus package #803

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: tests
  • Loading branch information
istornz committed Apr 19, 2024
commit 6953ec73bae8f0c327a879bbb2645f0727d8b43e
10 changes: 1 addition & 9 deletions templates/dart/test/query_test.dart.twig
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ void main() {
expect(query['method'], 'equal');
});
}

test('with a list', () {
final query = jsonDecode(Query.equal('attr', ['a', 'b', 'c']));
print(query);
expect(query['attribute'], 'attr');
expect(query['values'], ['a', 'b', 'c']);
expect(query['method'], 'equal');
});
});

group('notEqual()', () {
Expand Down Expand Up @@ -133,7 +125,7 @@ void main() {
group('greaterThan()', () {
for (var t in tests) {
test(t.description, () {
final query = jsonDecode(Query.greaterThan('attr', t.value).toJson());
final query = jsonDecode(Query.greaterThan('attr', t.value));
expect(query['attribute'], 'attr');
expect(query['values'], t.expectedValues);
expect(query['method'], 'greaterThan');
Expand Down