mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
19 lines
501 B
JavaScript
19 lines
501 B
JavaScript
import { define } from "factoria";
|
|
import { toJSON } from "tests/helpers/factoria";
|
|
|
|
import photoFactory from "./LocalPhoto";
|
|
|
|
export default define( "LocalObservationPhoto", faker => ( {
|
|
uuid: faker.string.uuid( ),
|
|
photo: photoFactory( "LocalPhoto" ),
|
|
wasSynced: jest.fn( ( ) => false ),
|
|
needsSync: jest.fn( ( ) => true ),
|
|
toJSON,
|
|
} ), {
|
|
uploaded: faker => ( {
|
|
_synced_at: faker.date.past( ),
|
|
needsSync: jest.fn( ( ) => false ),
|
|
wasSynced: jest.fn( ( ) => true ),
|
|
} ),
|
|
} );
|