I got the following error while running a test with Ember.js:
Promise rejected before "...": Assertion Failed: fullName must be a proper full name
What is the meaning of this error?
You might also encounter this error if you are using the new nested subfolder angle bracket syntax: <Foo::Bar />
Make sure you have the latest version of ember-angle-bracket-invocation-polyfill, at least 1.3.0
Reason
This error is thrown if moduleForComponent
is used for a unit test and the first parameter(the name of the component) is started with component:
prefix.
How to solve
You should check the name of the component that is written as parameter for unit test. If moduleForComponent
is used, then component:
prefix should not be used. However if moduleFor
is used, then component:
prefix should be used like below examples:
moduleForComponent('my-component', 'unit: my-component', {
//test specifications
});
or
moduleFor('component:my-component', 'unit: my-component', {
//test specifications
});
This twiddle demonstrates usages of both examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With