Permalink
Browse files

Fixed root node elimination test

  • Loading branch information...
1 parent 8d9c163 commit e6563cd8f6ec277d569f3c72a437e47cb7893f84 @Leonidas-from-XIV committed Jun 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/xml2js.test.coffee
View
@@ -106,7 +106,8 @@ module.exports =
'test text no trimming, no normalize': skeleton(trim: false, normalize: false, (r) ->
equ r.sample.whitespacetest[0]._, '\n Line One\n Line Two\n ')
- 'test default root node elimination': skeleton(__xmlString: '<root></root>', (r) ->
+ 'test enabled root node elimination': skeleton(__xmlString: '<root></root>', explicitRoot: false, (r) ->
+ console.log 'Result object: ' + util.inspect r, false, 10
assert.deepEqual r, {})
'test disabled root node elimination': skeleton(__xmlString: '<root></root>', explicitRoot: true, (r) ->

0 comments on commit e6563cd

Please sign in to comment.