Files
Ryan Stelly b78be9243d lint rule & autofix for "trailing comma" (#3299)
* (lint) MOB-1063 enforce trailing commas

* autofix trailing commas

* manually fix newly introduced maxlen violations

* add trailing comma convention to i18n build
2025-12-22 20:17:13 -06:00

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