Skip to content

Commit fab568b

Browse files
committed
Minor test fixes.
1 parent 6aa6d4b commit fab568b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/exit_test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ function run(command, options, callback) {
4040
}
4141

4242
function showDiff(actual, expected) {
43+
actual = actual.replace(/\r\n/g, '\n');
44+
expected = expected.replace(/\r\n/g, '\n');
4345
if (actual === expected) {
4446
return true;
4547
} else {
4648
return jsdiff.diffLines(expected, actual).map(function(d) {
4749
if (d.removed) {
48-
return 'MISSING: ' + d.value;
50+
return '**EXPECTED** ' + d.value;
4951
} else if (d.added) {
50-
return 'EXTRA: ' + d.value;
52+
return '**UNEXPECTED** ' + d.value;
5153
}
5254
}).filter(Boolean).join('');
5355
}
@@ -57,7 +59,7 @@ function fixture(filename) {
5759
return String(fs.readFileSync(filename));
5860
}
5961

60-
exports['awesome'] = {
62+
exports['exit'] = {
6163
setUp: function(done) {
6264
this.origCwd = process.cwd();
6365
process.chdir('test/fixtures');

0 commit comments

Comments
 (0)