Skip to content

Commit 501614e

Browse files
committed
fix npm run test-image -- * for mock lists w/o gl2d_* mocks
1 parent 6ebffbd commit 501614e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/image/compare_pixels_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ sortGl2dMockList(allMockList);
9191
// main
9292
if(isInQueue) {
9393
runInQueue(allMockList);
94-
}
95-
else {
94+
} else {
9695
runInBatch(allMockList);
9796
}
9897

@@ -137,6 +136,7 @@ function sortGl2dMockList(mockList) {
137136

138137
mockNames.forEach(function(m) {
139138
var ind = mockList.indexOf(m);
139+
if(ind === -1) return;
140140
var tmp = mockList[pos];
141141
mockList[pos] = m;
142142
mockList[ind] = tmp;

0 commit comments

Comments
 (0)