1 |
|
2 | require(__dirname).test({
|
3 | xml : "<span>Welcome,</span> to monkey land",
|
4 | expect : [
|
5 | ["opentag", {
|
6 | "name": "SPAN",
|
7 | "attributes": {}
|
8 | }],
|
9 | ["text", "Welcome,"],
|
10 | ["closetag", "SPAN"],
|
11 | ["text", " to monkey land"],
|
12 | ["end"],
|
13 | ["ready"]
|
14 | ],
|
15 | strict : false,
|
16 | opt : {}
|
17 | });
|