mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-02-05 19:41:11 -05:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
27 lines
651 B
JavaScript
27 lines
651 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();
|
|
} );
|
|
} );
|