Hello,
I’m currently trying to resolve a test error that I get when I run the test with Ember 2.3 beta 2
My test runs great on the current version of ember, but I can’t find the reason why it fails with the beta.
This is the error I get:
not ok 32 PhantomJS 1.9 - Unit | Component | alert: Component has correct initial value
---
actual: >
null
message: >
Promise rejected before Component has correct initial value: 'undefined' is not a function (evaluating 'registry.resolver.resolve(normalizedName)')
Log: |
...
And this is my test (pretty simple one…)
import { moduleForComponent, test } from 'ember-qunit';
var component;
moduleForComponent('magma-alert', 'Unit | Component | alert', {
unit: true,
setup() {
component = this.subject({alert: 'error'});
},
teardown() {
component = null;
}
});
test('Component has correct initial value', function (assert) {
assert.expect(1);
assert.ok(component.get('role') === 'alert');
});
Any idea what’s wrong?
Here is the link to travis-ci with more information:
Thank you!