File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ var ounitTest = false;
7
7
var mochaTest = false ;
8
8
var themeTest = false ;
9
9
var bsbTest = false ;
10
+ var formatTest = false ;
10
11
var all = false ;
11
12
12
13
if ( process . argv . includes ( "-ounit" ) ) {
@@ -25,6 +26,10 @@ if (process.argv.includes("-bsb")) {
25
26
bsbTest = true ;
26
27
}
27
28
29
+ if ( process . argv . includes ( "-format" ) ) {
30
+ formatTest = true ;
31
+ }
32
+
28
33
if ( process . argv . includes ( "-all" ) ) {
29
34
all = true ;
30
35
}
@@ -33,6 +38,7 @@ if (all) {
33
38
mochaTest = true ;
34
39
themeTest = true ;
35
40
bsbTest = true ;
41
+ formatTest = true ;
36
42
}
37
43
38
44
function init ( ) {
@@ -145,6 +151,10 @@ function runTests() {
145
151
}
146
152
} ) ;
147
153
}
154
+
155
+ if ( formatTest ) {
156
+ checkFormat ( ) ;
157
+ }
148
158
}
149
159
150
160
function checkFormat ( ) {
@@ -158,7 +168,6 @@ function main() {
158
168
try {
159
169
init ( ) ;
160
170
runTests ( ) ;
161
- checkFormat ( ) ;
162
171
} catch ( err ) {
163
172
console . error ( err ) ;
164
173
process . exit ( 2 ) ;
You can’t perform that action at this time.
0 commit comments