use test objects and 'of' for realm tests
This commit is contained in:
parent
36c1ae1f8e
commit
a99bf349a7
|
@ -84,9 +84,9 @@ class RealmTests extends Tests {
|
|||
|
||||
async insertions() {
|
||||
var realm = this.realm;
|
||||
for (let i = 0; i < numTestObjects; i++) {
|
||||
for (var obj of this.testObjects(numTestObjects)) {
|
||||
realm.write(() => {
|
||||
realm.create("TestObject", { int: i % numQueryBuckets, double: i, date: new Date(i), string: "" + i });
|
||||
realm.create("TestObject", obj);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue