File: string.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 (12 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
suite 'Convert to String:', ->
  test 'end() method', ->
    eq(
      xml('test16', { 'version': '1.1' } ).ele('node').txt('test').end()
      '<?xml version="1.1"?><test16><node>test</node></test16>'
    )

  test 'end() method of builder', ->
    eq(
      xml('test').doc().end()
      '<?xml version="1.0"?><test/>'
    )