Permalink
Browse files

more tests

  • Loading branch information...
1 parent 108ba01 commit d2d3a23481b202267b8e299b720bcffe83d290bc @tj committed Mar 21, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/parser.js
View
@@ -46,5 +46,14 @@ describe('Parser', function(){
parser.parse('{ "foo": "bar" }')
.should.eql({ foo: 'bar' });
})
+
+ it('should modify when a value is returned', function(){
+ var parser = new Parser;
+
+ parser.use(function(key, val){ return 'hey'; });
+
+ parser.parse('{ "foo": "bar" }')
+ .should.eql({ foo: 'hey' });
+ })
})
})

0 comments on commit d2d3a23

Please sign in to comment.