Files
iNaturalistReactNative/tests/factories/ModelPrediction.js
Ryan Stelly b78be9243d lint rule & autofix for "trailing comma" (#3299)
* (lint) MOB-1063 enforce trailing commas

* autofix trailing commas

* manually fix newly introduced maxlen violations

* add trailing comma convention to i18n build
2025-12-22 20:17:13 -06:00

20 lines
485 B
JavaScript

import { define } from "factoria";
export default define( "ModelPrediction", faker => ( {
name: faker.person.fullName( ),
rank_level: faker.helpers.arrayElement( [
100,
70,
60,
50,
40,
30,
20,
10,
] ),
combined_score: faker.number.float( { min: 80, max: 100 } ),
vision_score: faker.number.float( { min: 80, max: 100 } ),
taxon_id: faker.number.int( ),
ancestor_ids: faker.helpers.arrayElements( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ),
} ) );