mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-19 06:23:12 -04:00
* 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
15 lines
396 B
JavaScript
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 )
|
|
} )
|
|
} );
|