Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass owner instead of registry to ember-data's setupContainer
The `setupContainer` function of `ember-data` expects an application instance to be passed - in this case that is the faked owner object that we create when using a custom resolver in tests. This behaviour previously worked because `ember-data` supported the usage of legacy function `optionsForType` which exists on the `registry` object. However, they removed that legacy fallback in v4 and replaced it with `registerOptionsForType` which does not exist on the registry but only on the owner. Resolves #1386
- Loading branch information