Skip to content

Commit 4376943

Browse files
committed
test: don't filter out untestable when pattern is provided
1 parent da5a5cd commit 4376943

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/image/compare_pixels_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ if(mockList.length === 0) {
5555
throw new Error('No mocks found with pattern ' + pattern);
5656
}
5757

58-
mockList = mockList.filter(untestableFilter);
59-
60-
if(mockList.length === 0) {
61-
throw new Error('All mocks found with pattern ' + pattern + ' are currently untestable');
58+
// filter out untestable mocks if no pattern is specified
59+
if(!pattern) {
60+
console.log('Filtering out untestable mocks\n');
61+
mockList = mockList.filter(untestableFilter);
6262
}
6363

6464
// main

0 commit comments

Comments
 (0)