mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-23 12:58:55 +00:00
test query refinement
This commit is contained in:
parent
e91ef42ebb
commit
d838d61de4
@ -108,6 +108,8 @@ module.exports = BaseTest.extend({
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('age = 13').length, 0);
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('age < 12').length, 2);
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('age > 10 && age < 13').length, 3);
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('age > 10').filtered('age < 13').length, 3);
|
||||
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('age >= 11 && age < 13').length, 3);
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('name = "Tim"').length, 1);
|
||||
TestCase.assertEqual(realm.objects('PersonObject').filtered('name = \'Tim\'').length, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user