UNPKG

1.38 kBJavaScriptView Raw
1
2require(__dirname).test
3 ( { xml :
4 "<compileClassesResponse>"+
5 "<result>"+
6 "<bodyCrc>653724009</bodyCrc>"+
7 "<column>-1</column>"+
8 "<id>01pG0000002KoSUIA0</id>"+
9 "<line>-1</line>"+
10 "<name>CalendarController</name>"+
11 "<success>true</success>"+
12 "</result>"+
13 "</compileClassesResponse>"
14
15 , expect :
16 [ [ "opentag", { name: "COMPILECLASSESRESPONSE", attributes: {} } ]
17 , [ "opentag", { name : "RESULT", attributes: {} } ]
18 , [ "opentag", { name: "BODYCRC", attributes: {} } ]
19 , [ "text", "653724009" ]
20 , [ "closetag", "BODYCRC" ]
21 , [ "opentag", { name: "COLUMN", attributes: {} } ]
22 , [ "text", "-1" ]
23 , [ "closetag", "COLUMN" ]
24 , [ "opentag", { name: "ID", attributes: {} } ]
25 , [ "text", "01pG0000002KoSUIA0" ]
26 , [ "closetag", "ID" ]
27 , [ "opentag", {name: "LINE", attributes: {} } ]
28 , [ "text", "-1" ]
29 , [ "closetag", "LINE" ]
30 , [ "opentag", {name: "NAME", attributes: {} } ]
31 , [ "text", "CalendarController" ]
32 , [ "closetag", "NAME" ]
33 , [ "opentag", {name: "SUCCESS", attributes: {} } ]
34 , [ "text", "true" ]
35 , [ "closetag", "SUCCESS" ]
36 , [ "closetag", "RESULT" ]
37 , [ "closetag", "COMPILECLASSESRESPONSE" ]
38 ]
39 , strict : false
40 , opt : {}
41 }
42 )
43