mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-23 03:38:16 +00:00
fix for query tests
This commit is contained in:
parent
469121429a
commit
1c5f22bd4d
@ -62,7 +62,8 @@ function runQuerySuite(suite) {
|
||||
return args;
|
||||
}
|
||||
|
||||
for (var test of suite.tests) {
|
||||
for (var index in suite.tests) {
|
||||
var test = suite.tests[index];
|
||||
if (test[0] == "QueryCount") {
|
||||
var length = realm.objects.apply(realm, getArgs(2)).length;
|
||||
TestCase.assertEqual(test[1], length, "Query '" + args[1] + "' on type '" + args[0] + "' expected " + test[1] + " results, got " + length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user