1 | cc = require '../lib/coffeecup'
|
2 |
|
3 | describe 'Stylus', ->
|
4 | describe 'stylus "html, body\\n margin: 0"', ->
|
5 | it 'should render <style>html,body{margin:0}\\n</style>', ->
|
6 | s = -> stylus "html, body\n margin: 0"
|
7 | cc.render(s).should.equal "<style>html,body{margin:0}\n</style>"
|
8 |
|
9 | describe 'Stylus optimized', ->
|
10 | describe 'stylus "html, body\\n margin: 0"', ->
|
11 | it 'should render <style>html,body{margin:0}\\n</style>', ->
|
12 | s = -> stylus "html, body\n margin: 0"
|
13 | cc.render(s, optimized: true, cache: on)
|
14 | .should.equal "<style>html,body{margin:0}\n</style>"
|