1 | cc = require '../lib/coffeecup'
|
2 |
|
3 | describe 'literal', ->
|
4 | describe '#text(value)', ->
|
5 | it 'should render just plain text', ->
|
6 | t = -> text 'foobar'
|
7 | cc.render(t).should.equal 'foobar'
|
8 |
|
9 | describe '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'
|