mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-19 05:01:07 -04:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
26 lines
786 B
JavaScript
26 lines
786 B
JavaScript
import TaxonDetailsTitle from "components/TaxonDetails/TaxonDetailsTitle";
|
|
import React from "react";
|
|
import factory from "tests/factory";
|
|
|
|
jest.mock( "sharedHooks/useAuthenticatedQuery", () => ( {
|
|
__esModule: true,
|
|
default: ( ) => ( {
|
|
data: {
|
|
total_results: 0,
|
|
},
|
|
} ),
|
|
} ) );
|
|
|
|
describe( "TaxonDetailsTitle", ( ) => {
|
|
it( "should be accessible with a taxon", ( ) => {
|
|
// Disabled during the update to RN 0.78
|
|
expect( <TaxonDetailsTitle taxon={factory( "LocalTaxon" )} /> ).toBeTruthy( );
|
|
// expect( <TaxonDetailsTitle taxon={factory( "LocalTaxon" )} /> ).toBeAccessible( );
|
|
} );
|
|
|
|
it( "should be accessible without a taxon", ( ) => {
|
|
// Disabled during the update to RN 0.78
|
|
// expect( <TaxonDetailsTitle /> ).toBeAccessible( );
|
|
} );
|
|
} );
|