Skip to content

Commit

Permalink
Merge pull request #8 from yosuke-furukawa/improve_coverage
Browse files Browse the repository at this point in the history
Improve coverage
  • Loading branch information
yosuke-furukawa committed Apr 11, 2016
2 parents c2d811e + b0ce252 commit 5162e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core/bin/eater/repoter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const assert = require('power-assert');
const Reporter = require(`${process.cwd()}`).Reporter;

const result = cp.execSync(`${process.cwd()}/bin/eater.js --reporter ${process.cwd()}/test/reporter/DotReporter --dir test/fixture/ --ext success.js`).toString();


assert(result.trim() === '.');

const errResult = cp.spawnSync(`${process.cwd()}/bin/eater.js`, ["--reporter", "NotFoundReporter", "--dir", "test/fixture/", "--ext", "js"]);
assert(errResult.stderr.toString().trim() === "Error: Cannot find module 'NotFoundReporter'");

0 comments on commit 5162e00

Please sign in to comment.