refactor: 💡 replace store.findAll with store.query (#2002)
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11825
This commit is contained in:
1 parent
6ae3067dd9
commit
776c46f129
6 files changed
+5
-20
No files matched your search
@@ -144,12 +144,7 @@ module('Unit | Adapter | application', function (hooks) {
|
||||
const adapter = this.owner.lookup('adapter:application');
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.server.get('/v1/users', () => new Response({}));
|
||||
const prenormalized = await adapter.findAll(
|
||||
store,
|
||||
{ modelName: 'user' },
|
||||
null,
|
||||
[],
|
||||
);
|
||||
const prenormalized = await adapter.query(store, { modelName: 'user' }, {});
|
||||
assert.deepEqual(prenormalized, { items: [] });
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user