Files
iNaturalistReactNative/tests/factories/LocalObservationPhoto.js
Ken-ichi f45108036f Sound recording (#1164)
* Added basic navigation test for StandardCamera & SoundRecorder
* Abstracted camera nav buttons and used in SoundRecorder
* Show sounds in the MediaViewer
* Added sounds to ObsEdit, w/ MediaViewer support
* Ensure sounds get both uploaded and added to observations
* Local sound deletion
* Remote sound deletion
* Rudimentary and deeply unperformative sound visualization

Closes #869
2024-02-22 22:02:25 -08:00

18 lines
476 B
JavaScript

import { define } from "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: jest.fn( ( ) => ( { } ) )
} ), {
uploaded: faker => ( {
_synced_at: faker.date.past( ),
needsSync: jest.fn( ( ) => false ),
wasSynced: jest.fn( ( ) => true )
} )
} );