mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-19 14:28:02 -04:00
* Restored Suggestions navigation tests * Restored SuggestionsWithSyncedObs.test.js tests * Mocked vision-camera-plugin-inatvision instead of useOfflineSuggestions * Removed unnecessarily complex object from navigation params There were a lot of issues here, but the main ones (I think) were related to rendering all the navigators and waiting for asynchronous stuff to happen before proceeding with the test.
40 lines
505 B
JavaScript
40 lines
505 B
JavaScript
import { define } from "factoria";
|
|
|
|
export default define( "ModelPrediction", faker => ( {
|
|
name: faker.person.fullName( ),
|
|
rank: faker.helpers.arrayElement( [
|
|
100,
|
|
70,
|
|
60,
|
|
57,
|
|
53,
|
|
50,
|
|
47,
|
|
45,
|
|
44,
|
|
43,
|
|
40,
|
|
37,
|
|
35,
|
|
34.5,
|
|
34,
|
|
33.5,
|
|
33,
|
|
32,
|
|
30,
|
|
27,
|
|
26,
|
|
25,
|
|
24,
|
|
20,
|
|
15,
|
|
13,
|
|
12,
|
|
11,
|
|
10,
|
|
5
|
|
] ),
|
|
score: faker.number.float( { min: 0.8, max: 1 } ),
|
|
taxon_id: faker.number.int( )
|
|
} ) );
|