teacup-yoppet
Version:
Render HTML with native CoffeeScript templates. No magic, no fuss. Teacup Yoppet
17 lines (15 loc) • 753 B
text/coffeescript
expect = require 'expect.js'
{render, doctype} = require '..'
describe 'doctype', ->
it 'default should render html5 doctype', ->
template = -> doctype()
expect(render template).to.equal ''
it 'xml should render xml header', ->
template = -> doctype 'xml'
expect(render template).to.equal ''
it '5 should render html 5 doctype', ->
template = -> doctype 5
expect(render template).to.equal ''
it 'transitional should render transitional doctype', ->
template = -> doctype 'transitional'
expect(render template).to.equal ''