Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

passing discard test

  • Loading branch information...
commit ddd3b66d2f9bdd79ffd672a42a0cf46c6c11dbe5 1 parent 44c0aa5
@substack authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/discard.js
View
20 test/discard.js
@@ -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);
+}
Please sign in to comment.
Something went wrong with that request. Please try again.