Skip to content
This repository
Browse code

Fixed up more tests

  • Loading branch information...
commit 37effb632813eb1563b69cca5fa0b1db1632aa6b 1 parent e6563cd
Marek Kubica authored June 21, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  test/xml2js.test.coffee
8  test/xml2js.test.coffee
@@ -114,13 +114,13 @@ module.exports =
114 114
     assert.deepEqual r, {root: {}})
115 115
 
116 116
   'test default empty tag result': skeleton(undefined, (r) ->
117  
-    assert.deepEqual r['emptytest'], {})
  117
+    assert.deepEqual r.sample.emptytest, [{}])
118 118
 
119 119
   'test empty tag result specified null': skeleton(emptyTag: null, (r) ->
120  
-    assert.equal r['emptytest'], null)
  120
+    equ r.sample.emptytest[0], null)
121 121
 
122  
-  'test empty string result specified null': skeleton(__xmlString: ' ', (r) ->
123  
-    assert.equal r, null)
  122
+  'test invalid empty XML file': skeleton(__xmlString: ' ', (r) ->
  123
+    equ r, null)
124 124
 
125 125
   'test parse with custom char and attribute object keys': skeleton(attrkey: 'attrobj', charkey: 'charobj', (r) ->
126 126
     assert.equal r['chartest']['attrobj']['desc'], 'Test for CHARs'

0 notes on commit 37effb6

Please sign in to comment.
Something went wrong with that request. Please try again.