1
1
/* global describe, it */
2
2
3
-
4
3
'use strict' ;
5
4
6
-
7
5
var assert = require ( 'assert' ) ;
8
6
9
-
10
7
describe ( 'Engines' , function ( ) {
11
-
12
8
var env = require ( './environment' ) ( ) ;
13
9
14
10
describe ( 'EJS' , function ( ) {
@@ -25,32 +21,16 @@ describe('Engines', function () {
25
21
} ) ;
26
22
} ) ;
27
23
28
- describe ( 'LESS' , function ( ) {
29
- it ( 'should support context helpers' , function ( ) {
30
- var asset = env . findAsset ( 'less_engine/stylesheet' ) ;
31
- assert ( asset . toString ( ) . match ( / \/ a s s e t s \/ i x t i - [ a - f 0 - 9 ] { 32 } .g i f / ) ) ;
32
- assert ( asset . toString ( ) . match ( / d a t a : i m a g e \/ g i f ; b a s e 6 4 / ) ) ;
33
- } ) ;
34
- } ) ;
35
-
36
- describe ( 'SASS' , function ( ) {
37
- it ( 'should process stylesheets' , function ( ) {
38
- var asset = env . findAsset ( 'sass_engine/stylesheet' ) ;
39
- assert ( asset . toString ( ) . match ( / \. f o o \s + \. b a r \s * \{ / ) ) ;
40
- } ) ;
41
- } ) ;
42
-
43
-
44
24
describe ( 'JST' , function ( ) {
45
- describe ( 'EJS' , function ( ) {
25
+ describe ( 'with EJS backend ' , function ( ) {
46
26
it ( 'should compile to a JS function' , function ( ) {
47
27
var asset = env . findAsset ( 'jst_engine/ejs/template' ) ;
48
28
assert ( asset . toString ( ) . match ( / t h i s \. J S T / ) ) ;
49
29
assert ( asset . toString ( ) . match ( / b u f \. p u s h / ) ) ;
50
30
} ) ;
51
31
} ) ;
52
32
53
- describe ( 'JADE' , function ( ) {
33
+ describe ( 'with JADE backend ' , function ( ) {
54
34
it ( 'should compile to a JS function' , function ( ) {
55
35
var asset = env . findAsset ( 'jst_engine/jade/template' ) ;
56
36
assert ( asset . toString ( ) . match ( / t h i s \. J S T / ) ) ;
@@ -61,4 +41,18 @@ describe('Engines', function () {
61
41
} ) ;
62
42
} ) ;
63
43
44
+ describe ( 'LESS' , function ( ) {
45
+ it ( 'should support context helpers' , function ( ) {
46
+ var asset = env . findAsset ( 'less_engine/stylesheet' ) ;
47
+ assert ( asset . toString ( ) . match ( / \/ a s s e t s \/ i x t i - [ a - f 0 - 9 ] { 32 } .g i f / ) ) ;
48
+ assert ( asset . toString ( ) . match ( / d a t a : i m a g e \/ g i f ; b a s e 6 4 / ) ) ;
49
+ } ) ;
50
+ } ) ;
51
+
52
+ describe ( 'SASS' , function ( ) {
53
+ it ( 'should process stylesheets' , function ( ) {
54
+ var asset = env . findAsset ( 'sass_engine/stylesheet' ) ;
55
+ assert ( asset . toString ( ) . match ( / \. f o o \s + \. b a r \s * \{ / ) ) ;
56
+ } ) ;
57
+ } ) ;
64
58
} ) ;
0 commit comments