Files
iNaturalistReactNative/tests/unit/components/TaxonDetails/TaxonDetailsTitle.test.js
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

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