Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ember Error: Assertion Failed: fullName must be a proper full name

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?

like image 420
Ahmet Emre Kılınç Avatar asked Apr 09 '18 08:04

Ahmet Emre Kılınç


2 Answers

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

like image 134
dwenzel Avatar answered Sep 28 '22 01:09

dwenzel


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.

like image 43
Ahmet Emre Kılınç Avatar answered Sep 28 '22 02:09

Ahmet Emre Kılınç