Permalink
Browse files

ported jump test to tap

  • Loading branch information...
1 parent ba90123 commit 3c74751eb0a5cddb3272ce7752cd419d68fb1a0d @substack committed Apr 16, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 test/{chainsaw.js → jump.js}
@@ -2,9 +2,7 @@ var test = require('tap').test;
var chainsaw = require('../');
test('jump', function (t) {
- var to = setTimeout(function () {
- t.fail('builder never fired');
- }, 50);
+ t.plan(2);
var xs = [ 4, 5, 6, -4, 8, 9, -1, 8 ];
var xs_ = [];
@@ -22,7 +20,6 @@ test('jump', function (t) {
};
saw.on('end', function () {
- clearTimeout(to);
t.same(xs, [ 8 ]);
t.same(xs_, [ 1, 1, 1, 1, 2, 3, 2, 3, 2, 3 ]);
});

0 comments on commit 3c74751

Please sign in to comment.