mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-08-01 09:57:37 -04:00
16 lines
434 B
JavaScript
16 lines
434 B
JavaScript
import fetchUserProjects from "api/usersTyped";
|
|
import syncJoinedProjects from "sharedHelpers/syncJoinedProjects";
|
|
|
|
jest.mock( "api/usersTyped", () => ( {
|
|
__esModule: true,
|
|
default: jest.fn( ),
|
|
} ) );
|
|
|
|
describe( "syncJoinedProjects", ( ) => {
|
|
it( "no-ops when currentUserId is missing", async () => {
|
|
await syncJoinedProjects( global.realm, undefined );
|
|
|
|
expect( fetchUserProjects ).not.toHaveBeenCalled( );
|
|
} );
|
|
} );
|