teacup-yoppet
Version:
Render HTML with native CoffeeScript templates. No magic, no fuss. Teacup Yoppet
10 lines (8 loc) • 333 B
text/coffeescript
expect = require 'expect.js'
{render, ie, link} = require '..'
describe 'IE conditionals', ->
it 'renders conditional comments', ->
template = ->
ie 'gte IE8', ->
link href: 'ie.css', rel: 'stylesheet'
expect(render template).to.equal '<!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->'