halvalla
Version:
Generate React elements with CoffeeScript functions
17 lines (15 loc) • 766 B
text/coffeescript
expect = require 'expect.js'
{render, doctype} = require '../lib/halvalla'
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 ''