Permalink
Browse files

more tests

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

0 comments on commit 108ba01

Please sign in to comment.