Skip to content

Commit f8ce71d

Browse files
committed
flattened selector commands, cleaner spec logging, scoping still broken from sel flattening
1 parent 6d87768 commit f8ce71d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

spec/scoper.coffee

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ describe "Scoper", ->
4242
# var hoisting raw commands
4343
# ====================================================================
4444

45-
describe "var hoisting raw commands", ->
45+
describe "/ var hoisting raw commands", ->
4646

47-
hoistTest 'hoist 1 level root before',
47+
hoistTest '/ hoist 1 level root before',
4848
commands:
4949
[
5050
['==',['get','foo'],100]
@@ -66,7 +66,7 @@ describe "Scoper", ->
6666
]
6767

6868

69-
hoistTest 'hoist 1 level root after',
69+
hoistTest '/ hoist 1 level root after',
7070
commands:
7171
[
7272
['rule',['.','box'],
@@ -87,7 +87,7 @@ describe "Scoper", ->
8787
['==',['get','foo'],100]
8888
]
8989

90-
hoistTest 'hoist 2 level before',
90+
hoistTest '/ hoist 2 level before',
9191
commands:
9292
[
9393
['==',['get','foo'],0]
@@ -119,7 +119,7 @@ describe "Scoper", ->
119119
]
120120

121121

122-
hoistTest 'hoist 2 level root after',
122+
hoistTest '/ hoist 2 level root after',
123123
commands:
124124
[
125125
['rule',['.','box'],
@@ -151,7 +151,7 @@ describe "Scoper", ->
151151
]
152152

153153

154-
hoistTest 'DONT already hoisted 2 level root after',
154+
hoistTest '/ DONT already hoisted 2 level root after',
155155
commands:
156156
[
157157
['rule',['.','box'],
@@ -183,7 +183,7 @@ describe "Scoper", ->
183183
]
184184

185185

186-
hoistTest 'conditionals',
186+
hoistTest '/ conditionals',
187187
commands:
188188
[
189189
['==',['get','foo'],0]
@@ -256,9 +256,9 @@ describe "Scoper", ->
256256
# virtual hoisting raw commands
257257
# ====================================================================
258258

259-
describe "virtual hoisting raw commands", ->
259+
describe "/ virtual hoisting raw commands", ->
260260

261-
hoistTest 'hoist 1 level root before',
261+
hoistTest '/ hoist 1 level root before',
262262
commands:
263263
[
264264
['==',['get',['virtual','zone'],'foo'],100]
@@ -279,7 +279,7 @@ describe "Scoper", ->
279279
]
280280
]
281281

282-
hoistTest 'hoist 1 level root after',
282+
hoistTest '/ hoist 1 level root after',
283283
commands:
284284
[
285285
['rule',['.','box'],
@@ -300,7 +300,7 @@ describe "Scoper", ->
300300
['==',['get',['virtual','zone'],'foo'],100]
301301
]
302302

303-
hoistTest 'virtual defined in ruleset selector',
303+
hoistTest '/ virtual defined in ruleset selector',
304304
commands:
305305
[
306306
['rule',['.','box'],
@@ -338,7 +338,7 @@ describe "Scoper", ->
338338
]
339339

340340

341-
hoistTest 'Dont hoist root',
341+
hoistTest '/ Dont hoist root',
342342
commands:
343343
[
344344
['==',['get',['virtual','zone'],'foo'],100]
@@ -349,7 +349,7 @@ describe "Scoper", ->
349349
['==',['get',['virtual','zone'],'foo'],100]
350350
]
351351

352-
hoistTest 'Dont consider ruleset selector child scope',
352+
hoistTest '/ Dont consider ruleset selector child scope',
353353
commands:
354354
[
355355
['==',['get',['virtual','zone'],'foo'],100]
@@ -370,7 +370,7 @@ describe "Scoper", ->
370370
]
371371
]
372372

373-
hoistTest '4 level',
373+
hoistTest '/ 4 level',
374374
commands:
375375
[
376376
['rule', ['.','ready']
@@ -424,9 +424,9 @@ describe "Scoper", ->
424424
# manual & auto hoisting source equivalence
425425
# ====================================================================
426426

427-
describe "manual & auto hoisting source equivalence", ->
427+
describe "/ manual & auto hoisting source equivalence", ->
428428

429-
equivalent "1 level basic",
429+
equivalent "/ 1 level basic",
430430
"""
431431
foo == bar;
432432
.box {
@@ -440,7 +440,7 @@ describe "Scoper", ->
440440
}
441441
"""
442442

443-
equivalent "3 level with virtuals",
443+
equivalent "/ 3 level with virtuals",
444444
"""
445445
.wrap {
446446
my-size == 100;
@@ -480,7 +480,7 @@ describe "Scoper", ->
480480
}
481481
"""
482482

483-
equivalent "3 level moderate",
483+
equivalent "/ 3 level moderate",
484484
"""
485485
486486
@if foo > 20 {

0 commit comments

Comments
 (0)