mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-22 06:28:42 -04:00
13 lines
477 B
JavaScript
13 lines
477 B
JavaScript
import React from "react";
|
|
import AccessibilityEngine from "react-native-accessibility-engine";
|
|
|
|
import UserProfile from "../UserProfile";
|
|
|
|
test( "should not have accessibility errors", ( ) => {
|
|
// need to mock inatjs fetch
|
|
// right now this throws Cannot read property 'then' of undefined error
|
|
// because promise / results from iNatAPI are undefined
|
|
const userProfile = <UserProfile />;
|
|
expect( ( ) => AccessibilityEngine.check( userProfile ) ).not.toThrow();
|
|
} );
|