1 | require './setup'
|
2 |
|
3 | xdescribe 'Default CSS', ->
|
4 | describe 'on', ->
|
5 | beforeEach ->
|
6 | @load "### hi"
|
7 |
|
8 | it 'css', ->
|
9 | expect(@$).have.selector 'link'
|
10 | expect(@$).have.selector 'link[rel="stylesheet"][href="styledown.css"]'
|
11 |
|
12 | it 'js', ->
|
13 | expect(@$).have.selector 'script'
|
14 | expect(@$).have.selector 'script[src="styledown.js"]'
|
15 |
|
16 | describe 'off', ->
|
17 | beforeEach ->
|
18 | @load "### hi", head: ''
|
19 |
|
20 | it 'css', ->
|
21 | expect(@$).not.have.selector 'link[rel="stylesheet"]'
|
22 |
|
23 | it 'js', ->
|
24 | expect(@$).not.have.selector 'script'
|
25 |
|