Better error message on events tests

This commit is contained in:
Kyle Robinson Young 2013-03-13 19:37:32 -07:00
parent 08661730ee
commit 8dd69e9352

View File

@ -39,9 +39,9 @@ exports.events = {
}, 500); }, 500);
}], function(result) { }], function(result) {
helper.verboseLog(result); helper.verboseLog(result);
test.ok(result.indexOf('lib/added.js was indeed added') !== -1, 'event emitted when file added'); test.ok(result.indexOf('lib/added.js was indeed added') !== -1, 'event not emitted when file added');
test.ok(result.indexOf('lib/one.js was indeed changed') !== -1, 'event emitted when file changed'); test.ok(result.indexOf('lib/one.js was indeed changed') !== -1, 'event not emitted when file changed');
test.ok(result.indexOf('lib/added.js was indeed deleted') !== -1, 'event emitted when file deleted'); test.ok(result.indexOf('lib/added.js was indeed deleted') !== -1, 'event not emitted when file deleted');
test.done(); test.done();
}); });
}, },