We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da5a5cd commit 4376943Copy full SHA for 4376943
test/image/compare_pixels_test.js
@@ -55,10 +55,10 @@ if(mockList.length === 0) {
55
throw new Error('No mocks found with pattern ' + pattern);
56
}
57
58
-mockList = mockList.filter(untestableFilter);
59
-
60
-if(mockList.length === 0) {
61
- throw new Error('All mocks found with pattern ' + pattern + ' are currently untestable');
+// filter out untestable mocks if no pattern is specified
+if(!pattern) {
+ console.log('Filtering out untestable mocks\n');
+ mockList = mockList.filter(untestableFilter);
62
63
64
// main
0 commit comments