Files
iNaturalistReactNative/tests/unit/components/SharedComponents/ProjectList/ProjectListItem.test.js
Corey Farwell a43446909c Remove the need to specify TypeScript file extensions in imports (#3094)
* Don't require TS extensions in imports

* Resolve all import extension errors

* Remove file extension from import paths used in mocks

* Remove .d of type definition file paths

* Remove .d of type definition file and import as type

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-09-07 23:41:42 +02:00

19 lines
577 B
JavaScript

import ProjectListItem from "components/ProjectList/ProjectListItem";
import React from "react";
const mockProject = {
id: 1,
title: "Project Title",
icon: "https://static.inaturalist.org/projects/1/iconic_taxa_photos/medium.jpg?1521796076",
project_type: "collection"
};
describe( "ProjectListItem", () => {
it( "should be accessible", () => {
const projectListItem = <ProjectListItem item={mockProject} />;
// Disabled during the update to RN 0.78
expect( projectListItem ).toBeTruthy();
// expect( projectListItem ).toBeAccessible();
} );
} );