Skip to content
Browse files

failing test for overzealous scrub skips

  • Loading branch information...
1 parent ff3afc5 commit 2899c9f3844d7faef40b77f9f5d8f65048867a06 @substack committed Aug 8, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/scrub.js
View
15 test/scrub.js
@@ -114,3 +114,18 @@ exports.enumGetLink = function () {
assert.ok(args[0] === undefined);
};
+
+exports.skipSet = function () {
+ var s = new Scrubber;
+ var req = {
+ method : 0,
+ arguments : [ 33, '[Function]' ],
+ callbacks : { 0 : [ '1' ] },
+ links : [ { from : [ '0' ], to : [ '2' ] } ]
+ };
+
+ var args = s.unscrub(req, function (id) {
+ return function () {};
+ });
+ assert.equal(args[1], 33);
+};

0 comments on commit 2899c9f

Please sign in to comment.
Something went wrong with that request. Please try again.