diff --git a/test/parse.js b/test/parse.js index 5199e24..172d28b 100644 --- a/test/parse.js +++ b/test/parse.js @@ -102,6 +102,23 @@ describe('plist', function () { assert.ok(isEmpty(parsed)); }); + it('should prevent errors when empty in a dictionary', function() { + var xml = multiline(function() {/* + + + + + + should never be added + foo + bar + + +*/}); + var parsed = parse(xml); + assert.deepEqual(parsed, {foo: 'bar'}); + }); + it('should parse an empty and in dictionary with more data', function() { var xml = multiline(function() {/*