Skip to content

Commit

Permalink
test cases fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed Sep 29, 2024
1 parent 819df0a commit 97d95c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions packages/nitrite/test/collection/document_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void main() {
..put("line1", "40")
..put("line2", "ABC Street")));
expect(doc["location.address.test"], isNot("a"));
expect(doc["."], isNull);
expect(doc[".."], isNull);
expect(() => doc["."], throwsValidationException);
expect(() => doc[".."], throwsValidationException);
expect(doc["score.test"], isNull);
});

Expand Down Expand Up @@ -118,8 +118,8 @@ void main() {
..put("line1", "40")
..put("line2", "ABC Street")));
expect(doc["location:address:test"], isNot("a"));
expect(doc[":"], isNull);
expect(doc["::"], isNull);
expect(() => doc[":"], throwsValidationException);
expect(() => doc["::"], throwsValidationException);
expect(doc["score:test"], isNull);

expect(doc["location.address.line1"], isNull);
Expand Down Expand Up @@ -180,9 +180,6 @@ void main() {
..put("line1", "40")
..put("line2", "ABC Street")));
expect(doc["location.address.test"], isNot("a"));
expect(doc["."], isNull);
expect(doc[".."], isNull);
expect(doc["score.test"], isNull);
});

test("Put NULL", () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void main() {
expect(await cursor.length, 10);
});

test('Test Text Filter', () async {
test('Test Text Filter', retry: 3, () async {
var cursor = employeeRepository.find();
var emp = await cursor.first;
var text = emp.employeeNote?.text as String;
Expand Down

0 comments on commit 97d95c3

Please sign in to comment.