ember.js - ember-cli tests fail to load multiple needs -
i'm using ember-cli v0.0.44
here test:
import { modulefor, test } 'ember-qunit'; modulefor('controller:cpe-admin', 'cpeadmincontroller', { needs: [ 'controller:application', 'controller:cpe-vendor-summary' ] }); test('it exists', function() { var controller = this.subject(); ok(controller); });
here error produced when run command ember test:
not ok 115 phantomjs 1.9 - cpeadmincontroller: exists --- actual: > null message: > died on test #1 @ http://localhost:7357/assets/test-support.js:412 @ test (http://localhost:7357/assets/test-support.js:278) @ :17 @ http://localhost:7357/assets/vendor.js:70 @ http://localhost:7357/assets/test-loader.js:14: <(subclass of ember.controller):ember286> needs [ controller:cpevendorsummary ] not found
the file app/controller/cpe-vendor-summary.js exists within project.
what doing wrong?
ember.js ember-cli
No comments:
Post a Comment