Skip to content

Assertion wrongfully fails when finding a model #119

@royk

Description

@royk

(disclaimer: I am absolutely new with sl-ember-store so maybe I'm missing something fundamental, but I don't see how this is supposed to be working)

In a very simple project containing a single model and a server returning a valid json response for that model, I keep getting the following assertion failure:

A serializer needs to be set for....

Upon examination it seems that the default serializer is chosen. In the assertion execution, the serializer is called with zero arguments, therefore returns undefined, and the assertion fails, as it expects a "true" from the method it is calling.

Removing the assertion results in a program working as expected.

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