Skip to content

Commit 0b449f0

Browse files
committed
test: log skipped mocks in compare pixel test routine
1 parent 4f8d6af commit 0b449f0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/image/compare_pixels_test.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ if(mockList.length === 0) {
5858

5959
// filter out untestable mocks if no pattern is specified
6060
if(!pattern) {
61-
console.log('Filtering out untestable mocks\n');
61+
console.log('Filtering out untestable mocks:');
6262
mockList = mockList.filter(untestableFilter);
63+
console.log('\n');
6364
}
6465

6566
// main
@@ -81,11 +82,15 @@ else {
8182
*
8283
*/
8384
function untestableFilter(mockName) {
84-
return !(
85+
var cond = !(
8586
mockName === 'font-wishlist' ||
8687
mockName.indexOf('gl2d_') !== -1 ||
8788
mockName.indexOf('mapbox_') !== -1
8889
);
90+
91+
if(!cond) console.log(' -', mockName);
92+
93+
return cond;
8994
}
9095

9196
function runInBatch(mockList) {

0 commit comments

Comments
 (0)