Skip to content

Commit

Permalink
Merge pull request #4 from azizpunjani/issue156
Browse files Browse the repository at this point in the history
Issue156
  • Loading branch information
theoshu committed Dec 14, 2015
2 parents df08451 + f9e3ce9 commit 948f7b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions blueprints/sl-ember-test-helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ module.exports = {
var thirdText = ' "contains",' + EOL + ' "requires",';
var thirdLocationText = '"predef": [' + EOL;

// Import statement
return this.insertIntoFile( firstFile, firstText, { after: firstLocationText } )

// Execution of registration function
.then( function() {
.then( () => {
return this.insertIntoFile( secondFile, secondText, { after: secondLocationText } );
}.bind(this))

// .jshintrc file
.then( function() {
})
.then( () => {
return this.insertIntoFile( thirdFile, thirdText, { after: thirdLocationText } );
}.bind(this));
})
.then( () => {
return this.addAddonToProject( 'ember-sinon' );
});
},

normalizeEntityName: function() {}
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module.exports = {
included: function( app ) {
this._super.included( app );

if ( app.env === 'development' ) {
app.import( 'bower_components/sinonjs/sinon.js' );
if ( app.env !== 'production' ) {
app.import( 'bower_components/sinonjs/sinon.js', { type: 'test' } );
}
}
};

0 comments on commit 948f7b5

Please sign in to comment.