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

15 lines
396 B
JavaScript

import { define } from "factoria";
export default define( "LocalObservationSound", faker => ( {
uuid: faker.string.uuid( ),
file_url: faker.system.filePath( ),
wasSynced: jest.fn( ( ) => false ),
toJSON: jest.fn( ( ) => ( { } ) )
} ), {
uploaded: faker => ( {
_synced_at: faker.date.past( ),
needsSync: jest.fn( ( ) => false ),
wasSynced: jest.fn( ( ) => true )
} )
} );