mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-18 20:50:54 -04:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
24 lines
697 B
JavaScript
24 lines
697 B
JavaScript
import { screen } from "@testing-library/react-native";
|
|
import Attribution from "components/Suggestions/Attribution";
|
|
import React from "react";
|
|
import faker from "tests/helpers/faker";
|
|
import { renderComponent } from "tests/helpers/render";
|
|
|
|
const mockObservers = [
|
|
faker.person.fullName( ), faker.person.fullName( ), faker.person.fullName( ),
|
|
];
|
|
|
|
const renderAttribution = ( ) => renderComponent(
|
|
<Attribution
|
|
observers={mockObservers}
|
|
/>,
|
|
);
|
|
|
|
describe( "Attribution", ( ) => {
|
|
it( "should show attributions", async ( ) => {
|
|
renderAttribution( );
|
|
const observerName = screen.getByText( new RegExp( mockObservers[0] ) );
|
|
expect( observerName ).toBeVisible( );
|
|
} );
|
|
} );
|