coffeecup
Version:
Markup as CoffeeScript.
27 lines (24 loc) • 1.55 kB
text/coffeescript
cc = require '../lib/coffeecup'
describe 'doctype', ->
it 'default should render html5 doctype', ->
template = "doctype()"
expected = '
'
cc.render(template).should.equal expected
it 'xml should render xml header', ->
template = "doctype 'xml'"
expected = ' '
cc.render(template).should.equal expected
it '5 should render html 5 doctype', ->
template = "doctype 5"
expected = ' '
cc.render(template).should.equal expected
it 'transitional should render transitional doctype', ->
template = "doctype 'transitional'"
expected = ' '
cc.render(template).should.equal expected
# 'strict': ' '
# 'frameset': ' '
# '1.1': ' ',
# 'basic': ' '
# 'mobile': ' '
# 'ce': ' '