Permalink
Browse files

Fixed up more tests

  • Loading branch information...
Leonidas-from-XIV committed Jun 21, 2012
1 parent e6563cd commit 37effb632813eb1563b69cca5fa0b1db1632aa6b
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/xml2js.test.coffee
View
@@ -114,13 +114,13 @@ module.exports =
assert.deepEqual r, {root: {}})
'test default empty tag result': skeleton(undefined, (r) ->
- assert.deepEqual r['emptytest'], {})
+ assert.deepEqual r.sample.emptytest, [{}])
'test empty tag result specified null': skeleton(emptyTag: null, (r) ->
- assert.equal r['emptytest'], null)
+ equ r.sample.emptytest[0], null)
- 'test empty string result specified null': skeleton(__xmlString: ' ', (r) ->
- assert.equal r, null)
+ 'test invalid empty XML file': skeleton(__xmlString: ' ', (r) ->
+ equ r, null)
'test parse with custom char and attribute object keys': skeleton(attrkey: 'attrobj', charkey: 'charobj', (r) ->
assert.equal r['chartest']['attrobj']['desc'], 'Test for CHARs'

0 comments on commit 37effb6

Please sign in to comment.