@@ -2,7 +2,7 @@ var parser = require("../src/parser");
2
2
3
3
describe ( "XMLParser" , function ( ) {
4
4
5
- /* it("should parse all values as string, int, boolean or float", function () {
5
+ it ( "should parse all values as string, int, boolean or float" , function ( ) {
6
6
var xmlData = "<rootNode><tag>value</tag><boolean>true</boolean><intTag>045</intTag><floatTag>65.34</floatTag></rootNode>" ;
7
7
var expected = {
8
8
"rootNode" : {
@@ -471,7 +471,7 @@ describe("XMLParser", function () {
471
471
} ) ;
472
472
//console.log(JSON.stringify(result,null,4));
473
473
expect ( result ) . toEqual ( expected ) ;
474
- }); */
474
+ } ) ;
475
475
476
476
/* it("should parse nodes as arrays", function () {
477
477
var fs = require("fs");
@@ -547,7 +547,7 @@ describe("XMLParser", function () {
547
547
expect(result).toEqual(expected);
548
548
}); */
549
549
550
- /* it("should skip namespace", function () {
550
+ it ( "should skip namespace" , function ( ) {
551
551
var xmlData = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >'
552
552
+ ' <soapenv:Header>'
553
553
+ ' <cor:applicationID>dashboardweb</cor:applicationID>'
@@ -579,7 +579,7 @@ describe("XMLParser", function () {
579
579
580
580
var result = parser . parse ( xmlData , { ignoreNameSpace : true } ) ;
581
581
expect ( result ) . toEqual ( expected ) ;
582
- }); */
582
+ } ) ;
583
583
584
584
it ( "should not trim tag value if not allowed " , function ( ) {
585
585
var xmlData = "<rootNode> 123 </rootNode>" ;
@@ -655,5 +655,5 @@ describe("XMLParser", function () {
655
655
expect ( result ) . toEqual ( expected ) ;
656
656
} ) ;
657
657
658
-
658
+
659
659
} ) ;
0 commit comments