Skip to content

Handle POJO models #68

@jrowlingson

Description

@jrowlingson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions