Skip to content

Commit

Permalink
fixed import mockjax
Browse files Browse the repository at this point in the history
  • Loading branch information
danielspaniel committed Sep 4, 2015
1 parent 09d5799 commit 6a728b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ module.exports = {

included: function(app) {
this._super.included(app);

if (app.env === 'test') {
// need to load mockjax in development and test environment since ember tests
// can be run from browser in development mode
if (app.tests) {
app.import(app.bowerDirectory + '/jquery-mockjax/dist/jquery.mockjax.js');
}
}
Expand Down

0 comments on commit 6a728b8

Please sign in to comment.