Permalink
Browse files

Merge pull request #15 from wilmoore/should-emit-error-event

added "Should emit error event" to "info" spec
  • Loading branch information...
2 parents 4527f76 + 71fd72c commit b43517af631c7b90369993fe5300c7473b9d8d25 @fat fat committed Sep 13, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/info.js
View
@@ -12,6 +12,13 @@ describe('info', function () {
assert(info() instanceof events.EventEmitter);
});
+ it('Should emit error event', function (next) {
+ info('no-package-found').on('error', function (error) {
+ assert(!!error);
+ next();
+ });
+ });
+
it('Should emit end event', function (next) {
info('jquery').on('end', function (data) {
assert(!!data);
@@ -33,4 +40,4 @@ describe('info', function () {
});
});
-});
+});

0 comments on commit b43517a

Please sign in to comment.