Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.846 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
cc = require '../lib/coffeecup'
assert = require 'assert'

describe 'IE conditionals', ->
  describe " ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'", ->
    it 'should render <!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->', ->
      h = -> ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'
      assert.equal cc.render(h), '<!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->'

describe 'IE conditionals optimized', ->
  describe " ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'", ->
    it 'should render <!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->', ->
      h = -> ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'
      assert.equal cc.render(h, optimized: true, cache: on), '<!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->'
Something went wrong with that request. Please try again.