UNPKG

604 Btext/coffeescriptView Raw
1require './setup'
2
3describe 'Canvas block', ->
4 beforeEach ->
5 @load '''
6 ### Buttons
7
8 @example
9 a.button Hello
10
11 ### Colors
12
13 @example
14 a.button.primary Primary button
15 a.button.success Success button
16 '''
17
18 it 'sg-code', ->
19 expect(@$('.sg-code').length).eq 2
20
21 it 'sg-canvas', ->
22 expect(@$('.sg-canvas').length).eq 2
23
24 it 'block length', ->
25 expect(@$('.sg-block')).have.length 2
26
27 it 'block classnames', ->
28 expect(@$('.sg-block').eq(0).is('.sg-section-buttons')).true
29 expect(@$('.sg-block').eq(1).is('.sg-section-colors')).true
30