Skip to content

Commit dc91e8d

Browse files
committed
tasks add 'ok' logs to test-syntax
1 parent bb35354 commit dc91e8d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tasks/test_syntax.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function assertJasmineSuites() {
4040

4141
});
4242

43-
log(logs);
43+
log('no jasmine suites focus/exclude blocks', logs);
4444
});
4545
}
4646

@@ -70,7 +70,7 @@ function assertHeaders() {
7070
}
7171
});
7272

73-
log(logs);
73+
log('correct headers in lib/ and src/', logs);
7474
});
7575
}
7676

@@ -91,7 +91,7 @@ function assertFileNames() {
9191
}
9292
});
9393

94-
log(logs);
94+
log('lower case only file names', logs);
9595
});
9696

9797
}
@@ -113,12 +113,16 @@ function assertCircularDeps() {
113113

114114
log('circular dependencies', logs);
115115
}
116+
116117
function combineGlobs(arr) {
117118
return '{' + arr.join(',') + '}';
118119
}
119120

120-
function log(logs) {
121+
function log(name, logs) {
121122
if(logs.length) {
123+
console.error('test-syntax error [' + name + ']\n');
122124
throw new Error('\n' + logs.join('\n') + '\n');
123125
}
126+
127+
console.log('ok ' + name);
124128
}

0 commit comments

Comments
 (0)