mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-01-22 20:59:30 -05:00
* Don't require TS extensions in imports * Resolve all import extension errors * Remove file extension from import paths used in mocks * Remove .d of type definition file paths * Remove .d of type definition file and import as type --------- Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
27 lines
649 B
JavaScript
27 lines
649 B
JavaScript
import UserListItem from "components/UserList/UserListItem";
|
|
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 ).toBeTruthy();
|
|
// Disabled during the update to RN 0.78
|
|
// expect( userListItem ).toBeAccessible();
|
|
} );
|
|
} );
|