|
@ -17,6 +17,7 @@ export default class MockRealm{ |
|
|
objects(repoName){ |
|
|
objects(repoName){ |
|
|
let objects = this[repoName]; |
|
|
let objects = this[repoName]; |
|
|
objects.filtered = this.filtered ? this.filtered.bind(this, repoName) : () => objects; |
|
|
objects.filtered = this.filtered ? this.filtered.bind(this, repoName) : () => objects; |
|
|
|
|
|
objects.sorted = this.sorted ? this.sorted.bind(this, repoName) : () => objects; |
|
|
return objects; |
|
|
return objects; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|