Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
Merge 2d05d78 into 1a71a4a
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Dec 31, 2015
2 parents 1a71a4a + 2d05d78 commit d5f898a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "to-csv.js",
"scripts": {
"test": "mocha test/**/*-test.js",
"cover": "istanbul cover node_modules/mocha/bin/_mocha -- test/**/*-test.js"
"cover": "istanbul cover node_modules/mocha/bin/_mocha --include-all-sources true -- test/**/*-test.js"
},
"repository": {
"type": "git",
Expand Down
7 changes: 4 additions & 3 deletions test/acceptance/to-csv-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('to-csv', function() {
var ps = spawn(process.execPath, [
// path.resolve(__dirname, '../bin/cmd.js'),
'to-csv',
'test/fixtures/locales',
path.resolve(process.cwd(), 'test/fixtures/locales'),
'tmp/i18n.csv',
]);

Expand All @@ -34,6 +34,9 @@ describe('to-csv', function() {
ps.stderr.on('data', function(buffer) { err += buffer; });

ps.on('exit', function(code) {
console.log(out);
expect(err).to.be.falsy;
expect(code).to.equal(0);
fs.readFile('tmp/i18n.csv', 'utf-8', function(err, actual) {
expect(err).to.be.falsy;
fs.readFile('test/fixtures/i18n.csv', 'utf-8', function(err, expected) {
Expand All @@ -42,8 +45,6 @@ describe('to-csv', function() {
done();
});
});
expect(err).to.be.falsy;
expect(code).to.equal(0);
});
});
});
Expand Down

0 comments on commit d5f898a

Please sign in to comment.