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

Commit

Permalink
added a mocha config file for #16
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Nov 25, 2016
1 parent 01f933c commit d204f31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = yeoman.Base.extend({
configuring() {
this.copy('_gitignore', '.gitignore');
this.template('_nvmrc', '.nvmrc');
this.copy('test/_mocha.opts', 'test/mocha.opts');
},

writing() {
Expand Down
1 change: 1 addition & 0 deletions app/templates/test/_mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--ui tdd
3 changes: 3 additions & 0 deletions test/integration/features/step_definitions/verification.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module.exports = function () {
assert.equal(pkg.scripts.test, 'run-s tests:*');
assert.equal(pkg.scripts.precommit, 'npm test');

assert.fileContent('test/mocha.opts', `--ui tdd
`);

callback();
});
};

0 comments on commit d204f31

Please sign in to comment.