Files
iNaturalistReactNative/tests/factories/RemoteVote.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

15 lines
393 B
JavaScript

import { define } from "factoria";
import userFactory from "./RemoteUser";
export default define( "RemoteVote", faker => ( {
created_at: faker.date.past( ).toISOString( ),
id: faker.number.int( ),
// Default to vote in favor
vote_flag: true,
// Default to unscoped vote, e.g. obs fave
vote_scope: null,
user: userFactory( "RemoteUser" ),
user_id: faker.number.int( ),
} ) );