Files
iNaturalistReactNative/tests/unit/components/SharedComponents/UserListItem.test.js
Amanda Bullington bc817e8b80 Add projects, followers, and following lists via UserProfile (#2300)
Show projects, followers, and following lists via UserProfile
2024-10-24 19:04:42 -07:00

25 lines
564 B
JavaScript

import UserListItem from "components/UserList/UserListItem.tsx";
import React from "react";
import factory from "tests/factory";
import faker from "tests/helpers/faker";
const mockUser = factory( "RemoteUser", {
login: "test123",
id: faker.number.int( )
} );
describe( "UserListItem", ( ) => {
it( "should be accessible", ( ) => {
const userListItem = (
<UserListItem
item={{
user: mockUser
}}
count={3}
countText="X-Observations"
/>
);
expect( userListItem ).toBeAccessible();
} );
} );