Skip to content

Commit

Permalink
Add junky console.log's to debug travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrperkins committed Feb 3, 2013
1 parent 6a11b2d commit 66352fb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ exports['grunt-mocha-hack'] = {
grunt: true,
args: ['--gruntfile', gruntfileFixture, 'mocha-hack:one'],
}, function(err, result, code) {
test.ok(/# tests 3/.test(result.stdout));
test.ok(/# fail 0/.test(result.stdout));
console.log(result.stdout);
test.ok(/# tests 3/.test(result.stdout), 'should have run 3 tests');
test.ok(/# fail 0/.test(result.stdout), 'should have failed 0 tests');
test.equal(code, 0, 'should have no error code');
test.done();
});
Expand All @@ -54,9 +55,9 @@ exports['grunt-mocha-hack'] = {
grunt: true,
args: ['--gruntfile', gruntfileFixture, 'mocha-hack:two'],
}, function(err, result, code) {
// console.log(result.stdout);
test.ok(/# tests 3/.test(result.stdout));
test.ok(/# fail 3/.test(result.stdout));
console.log(result.stdout);
test.ok(/# tests 3/.test(result.stdout), 'should have run 3 tests');
test.ok(/# fail 3/.test(result.stdout), 'should have failed 3 tests');
test.equal(code, 3, 'should have error code - task failure');
test.done();
});
Expand Down

0 comments on commit 66352fb

Please sign in to comment.