Skip to content

Commit

Permalink
Fixing unit tests (#593)
Browse files Browse the repository at this point in the history
* test: increase mocha timeout to 10 seconds

* test: removing tabtab cache in yo completion test
  • Loading branch information
willmendesneto authored and SBoudrias committed Jul 15, 2018
1 parent fb26ca0 commit 9e9c141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"postinstall": "yodoctor",
"postupdate": "yodoctor",
"pretest": "xo",
"test": "nyc mocha",
"test": "nyc mocha --timeout=10000",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion test/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Completion', () => {
const yocomplete = path.join(__dirname, '../lib/completion/index.js');
const yo = path.join(__dirname, '../lib/cli');

let cmd = 'export cmd="yo" && DEBUG="tabtab*" COMP_POINT="4" COMP_LINE="$cmd" COMP_CWORD="$cmd"';
let cmd = 'export cmd="yo" && YO_TEST=true DEBUG="tabtab*" COMP_POINT="4" COMP_LINE="$cmd" COMP_CWORD="$cmd"';
cmd += `node ${yocomplete} completion -- ${yo} $cmd`;

execFile('bash', ['-c', cmd], (err, out) => {
Expand Down

0 comments on commit 9e9c141

Please sign in to comment.