1 | require './setup'
|
2 |
|
3 | describe 'Tags', ->
|
4 | it 'one class', ->
|
5 | @load '''
|
6 | ### Hello
|
7 |
|
8 | @example .white
|
9 | div
|
10 | '''
|
11 |
|
12 | expect(@$).have.selector '.sg-example'
|
13 | expect(@$).have.selector '.sg-example.sg-white'
|
14 |
|
15 | it 'two classes', ->
|
16 | @load '''
|
17 | ### Hello
|
18 |
|
19 | @example .white .pad
|
20 | div
|
21 | '''
|
22 |
|
23 | expect(@$).have.selector '.sg-example'
|
24 | expect(@$).have.selector '.sg-example.sg-white.sg-pad'
|