File: doc.coffee

package info (click to toggle)
node-xml2js 0.6.2%2B~cs15.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,312 kB
  • sloc: xml: 119; javascript: 7; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
suite 'Navigation:', ->
  test 'Doc', ->
    eq(
      xml('test7', {}, {}, { headless: true })
        .ele('nodes')
          .ele('node', '1').up()
          .ele('node', '2').up()
          .ele('node', '3')
        .end()
      '<test7><nodes><node>1</node><node>2</node><node>3</node></nodes></test7>'
    )