Files
iNaturalistReactNative/tests/unit/sharedHelpers/syncJoinedProjects.test.js
2026-07-10 20:56:21 +02:00

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( );
} );
} );