halvalla
Version:
Generate React elements with CoffeeScript functions
21 lines (19 loc) • 830 B
text/coffeescript
###
doctype.coffee mocha test for mithril
###
expect = require 'expect.js'
debugger
{render, doctype} = require '../lib/halvalla-mithril'
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 ''