File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ const runTileTests = async ({
262262 counts = count ( result . data , { depth : 2 } ) ;
263263 const sortedCounts = Object . entries ( counts ) . sort ( ( a , b ) => Math . sign ( b [ 1 ] - a [ 1 ] ) ) ;
264264 const top = sortedCounts [ 0 ] [ 0 ] ;
265- if ( method !== "first" && ! out_bands ) {
265+ if ( ! [ "first" , "min" , "max" ] . includes ( method ) && ! out_bands ) {
266266 try {
267267 eq ( most_common_pixels . includes ( top ) , true ) ;
268268 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ const runTileTests = async ({
272272 counts = count ( result . data , { depth : 2 } ) ;
273273 const sortedCounts = Object . entries ( counts ) . sort ( ( a , b ) => Math . sign ( b [ 1 ] - a [ 1 ] ) ) ;
274274 const top = sortedCounts [ 0 ] [ 0 ] ;
275- if ( method !== "first" && ! out_bands ) {
275+ if ( ! [ "first" , "min" , "max" ] . includes ( method ) && ! out_bands ) {
276276 try {
277277 eq ( most_common_pixels . includes ( top ) , true ) ;
278278 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments