suite 'XML Declaration:', -> test 'From create() without arguments', -> eq( xml('test').end() '' ) test 'From create() with arguments', -> eq( xml('test', { version: '1.1', encoding: 'UTF-8', standalone: true }).end() '' ) test 'From dec() without arguments', -> eq( xml('test', { headless: true }).dec().ele('node').end() '' ) test 'From dec() with arguments', -> eq( xml('test').dec({ version: '1.1', encoding: 'UTF-8', standalone: true }).ele('node').end() '' )