UNPKG

400 Btext/coffeescriptView Raw
1cc = require '../lib/coffeecup'
2
3describe 'literal', ->
4 describe '#text(value)', ->
5 it 'should render just plain text', ->
6 t = -> text 'foobar'
7 cc.render(t).should.equal 'foobar'
8
9describe 'literal optimized', ->
10 describe '#text(value)', ->
11 it 'should render just plain text', ->
12 t = -> text 'foobar'
13 cc.render(t, optimized: true, cache: on).should.equal 'foobar'