Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Commit

Permalink
some test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Aug 23, 2014
1 parent 6762970 commit 08b92cf
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions test/test-creation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@ describe('travi-js-library generator', function () {
this.app = helpers.createGenerator('travi-js-library:app', [
'../../app'
]);

done();
}.bind(this));
});

it('creates expected files', function (done) {
var expected = [
// add files you expect to exist here.
'.jshintrc',
'.editorconfig',
'package.json',
'bower.json',
'Gruntfile.js'
];

helpers.mockPrompt(this.app, {
'someOption': true
});
this.app.options['skip-install'] = true;

this.app.run({}, function () {
helpers.assertFile(expected);
helpers.assertFile([
// add files you expect to exist here.
'.jshintrc',
'.editorconfig',
'package.json',
'bower.json',
'Gruntfile.js'
]);

done();
});
});
Expand Down

0 comments on commit 08b92cf

Please sign in to comment.