ember.js - Ember CLI Test Helpers -


can point me resource on how implement test helper ember-cli?

or else simple explanation?

i know helpers go in test/helpers directory, how load them integration tests?

thanks

the way found is:

// tests/helpers/controller.js import ember 'ember';  ember.test.registerhelper('controller', function (app, name) {   return app.__container__.lookup('controller:' + name); }); 

then in acceptance test:

// acceptance/index-test.js import ember 'ember'; // import our helper (this might done within helpers/start-app.js import helpers) import '../helpers/controller'; import startapp '../helpers/start-app';  // tests using helper(s) 

but there might better way of doing.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -