mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-08-03 02:51:31 -04:00
MOB-1554: also set identified: false
This commit is contained in:
@@ -21,6 +21,7 @@ export interface ExploreV2QueryParams {
|
||||
radius?: number;
|
||||
place_id?: number;
|
||||
verifiable?: boolean;
|
||||
identified?: boolean;
|
||||
}
|
||||
|
||||
export interface NearbyCoords {
|
||||
@@ -55,6 +56,7 @@ const buildExploreV2QueryParams = (
|
||||
break;
|
||||
case "unknown":
|
||||
params.iconic_taxa = ["unknown"];
|
||||
params.identified = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -56,6 +56,7 @@ describe( "buildExploreV2QueryParams", ( ) => {
|
||||
};
|
||||
const params = buildExploreV2QueryParams( state );
|
||||
expect( params.iconic_taxa ).toEqual( ["unknown"] );
|
||||
expect( params.identified ).toBe( false );
|
||||
expect( params.taxon_id ).toBeUndefined( );
|
||||
expect( params.verifiable ).toBe( true );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user