Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

added "Should emit error event" to "info" spec
  • Loading branch information...
commit b43517af631c7b90369993fe5300c7473b9d8d25 2 parents 4527f76 + 71fd72c
@fat fat authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/info.js
View
9 test/info.js
@@ -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 () {
});
});
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.