Permalink
Browse files

passing discard test

  • Loading branch information...
substack committed Jan 14, 2012
1 parent 44c0aa5 commit ddd3b66d2f9bdd79ffd672a42a0cf46c6c11dbe5
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/discard.js
View
@@ -0,0 +1,20 @@
+var toss = require('../');
+var test = require('tap').test;
+
+test('errors', function (t) {
+ t.plan(1);
+ var tt = toss(30, function (err) {
+ t.equal(err, 'beep');
+ t.end();
+ });
+
+ busy(tt(function () {
+ busy(tt(function () {
+ tt.error('beep');
+ }))
+ }));
+});
+
+function busy (cb) {
+ setTimeout(cb, 10);
+}

0 comments on commit ddd3b66

Please sign in to comment.