Search code examples
ember.jsember-cliember-testing

Ember.js - One test always fails in random module


all my tests pass, but one error occurs every run on a random module. Even if its an empty controller, or route.

The message says:

Uncaught Error: Assertion Failed: Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.

enter image description here

Does someone know how to debug it?

Ember: 2.2.0

Ember-Data 2.2.0

Ember-Cli: 2.2.0-beta-3


Solution

  • One of the mixins required a service that could not be injected. After mocking it, it works again.