Skip to content

Commit

Permalink
Removed nested dtd object from create test
Browse files Browse the repository at this point in the history
  • Loading branch information
oozcitak committed Dec 22, 2013
1 parent 8458698 commit 4b3beda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/createxml.coffee
Expand Up @@ -124,19 +124,19 @@ vows
xml = '<?xml version="1.0"?><test14><node>test</node></test14>' xml = '<?xml version="1.0"?><test14><node>test</node></test14>'
assert.strictEqual topic.end(), xml assert.strictEqual topic.end(), xml


'create() with with arguments': 'create() with arguments':
topic: () -> topic: () ->
xmlbuilder.create('test14', { 'version': '1.1' }).ele('node').txt('test') xmlbuilder.create('test14', { 'version': '1.1' }).ele('node').txt('test')


'resulting XML': (topic) -> 'resulting XML': (topic) ->
xml = '<?xml version="1.1"?><test14><node>test</node></test14>' xml = '<?xml version="1.1"?><test14><node>test</node></test14>'
assert.strictEqual topic.end(), xml assert.strictEqual topic.end(), xml


'create() with with merged arguments': 'create() with merged arguments':
topic: () -> topic: () ->
xml1 = xmlbuilder.create('test14', { version: '1.1', encoding: 'UTF-8', standalone: true, dtd: { sysID: 'hello.dtd' }}) xml1 = xmlbuilder.create('test14', { version: '1.1', encoding: 'UTF-8', standalone: true, sysID: 'hello.dtd' })
.ele('node').txt('test') .ele('node').txt('test')
xml2 = xmlbuilder.create('test14', { headless: true, version: '1.1', encoding: 'UTF-8', standalone: true, dtd: { sysID: 'hello.dtd' }}) xml2 = xmlbuilder.create('test14', { headless: true, version: '1.1', encoding: 'UTF-8', standalone: true, sysID: 'hello.dtd' })
.ele('node').txt('test') .ele('node').txt('test')
[xml1, xml2] [xml1, xml2]


Expand Down

0 comments on commit 4b3beda

Please sign in to comment.