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

18 lines
464 B
JavaScript

import { define } from "factoria";
import { toJSON } from "tests/helpers/factoria";
import soundFactory from "./LocalSound";
export default define( "LocalObservationSound", faker => ( {
uuid: faker.string.uuid( ),
sound: soundFactory( "LocalSound" ),
wasSynced: jest.fn( ( ) => false ),
toJSON,
} ), {
uploaded: faker => ( {
_synced_at: faker.date.past( ),
needsSync: jest.fn( ( ) => false ),
wasSynced: jest.fn( ( ) => true ),
} ),
} );