UNPKG

621 Btext/coffeescriptView Raw
1require './setup'
2
3describe 'Jade Templates', ->
4 describe 'head', ->
5 beforeEach ->
6 @load '''
7 hello
8
9 # Styleguide options
10 ## Head
11 script(src="helloworld.js")
12 '''
13
14 it 'no errors', ->
15
16 it 'render script', ->
17 expect(@$('script[src="helloworld.js"]')).have.length 1
18
19 describe 'body', ->
20 beforeEach ->
21 @load '''
22 hello
23
24 # Styleguide options
25 ## head
26 link
27 ## body
28 #hello(sg-content)
29 '''
30
31 it 'no errors', ->
32
33 it 'render body', ->
34 expect(@$('#hello')).have.length 1