Files
iNaturalistReactNative/tests/factories/ModelPrediction.js
Ken-ichi 799e0f4c4f Restore tests removed in recent suggeston fixes (#1001)
* 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.
2024-01-05 19:48:46 -08:00

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( )
} ) );