We went off the path a bit and have some model tests that are testing models which are simple EmberObjects.
The following input:
const worker = this.subject({ user });
Produces the following output:
const worker = run(() => this.owner.lookup('service:store').createRecord('worker', { user }));
This obviously will cause the test to fail because this is not an EmberData model object. I can submit a failing test if you feel this usage should be handled.
We went off the path a bit and have some model tests that are testing models which are simple EmberObjects.
The following input:
const worker = this.subject({ user });Produces the following output:
const worker = run(() => this.owner.lookup('service:store').createRecord('worker', { user }));This obviously will cause the test to fail because this is not an EmberData model object. I can submit a failing test if you feel this usage should be handled.