Fix failing test. Just look for fatal.

This commit is contained in:
Kyle Robinson Young 2012-10-31 17:20:13 -07:00
parent 3682c6e654
commit 0a6f8fcf86

View File

@ -178,7 +178,7 @@ exports.watchConfig = {
grunt.file.write(path.join(cwd, 'lib', 'fail.js'), 'var fail = false;');
}, function(result) {
verboseLog(result);
test.ok(result.indexOf('<FATAL>') !== -1, 'Task should have been fatal.');
test.ok(result.toLowerCase().indexOf('fatal') !== -1, 'Task should have been fatal.');
test.equal(grunt.util._(result).count('Waiting...'), 2, 'Should have displayed "Wating..." twice');
test.done();
});