onInjectHelpers (callback) public
Used to register callbacks to be fired whenever App.injectTestHelpers is called.
The callback will receive the current application as an argument.
Example:
Ember.Test.onInjectHelpers(function() {
Ember.$(document).ajaxSend(function() {
Test.pendingRequests++;
});
Ember.$(document).ajaxComplete(function() {
Test.pendingRequests--;
});
});
Parameters:
-
callback
Function - The function to be called.
Please login to continue.