From 6c839f9036eb3b322d55f1e30443dd76d7a64aab Mon Sep 17 00:00:00 2001
From: sepeterson <10458078+sepeterson@users.noreply.github.com>
Date: Thu, 4 Dec 2025 20:40:17 -0600
Subject: [PATCH] MOB-512 rm silly import
---
tests/integration/SavedMatch.test.js | 36 +++++++++++++---------------
1 file changed, 16 insertions(+), 20 deletions(-)
diff --git a/tests/integration/SavedMatch.test.js b/tests/integration/SavedMatch.test.js
index 76ddac2fc..71e9e5236 100644
--- a/tests/integration/SavedMatch.test.js
+++ b/tests/integration/SavedMatch.test.js
@@ -7,7 +7,6 @@ import factory from "tests/factory";
import faker from "tests/helpers/faker";
import { renderAppWithComponent } from "tests/helpers/render";
import setupUniqueRealm from "tests/helpers/uniqueRealm";
-import { describe } from "yargs";
// UNIQUE REALM SETUP
const mockRealmIdentifier = __filename;
@@ -77,28 +76,25 @@ jest.mock( "@react-navigation/native", () => {
};
} );
-/*
+describe( "SavedMatch", ( ) => {
beforeEach( async ( ) => {
jest.clearAllMocks( );
- } ); */
+ } );
-describe( "SavedMatch", ( ) => {
- describe( "SavedMatch goto taxon", ( ) => {
- it( "should call navigation.push on learn more button press", async ( ) => {
- const actor = userEvent.setup( );
- renderAppWithComponent( );
- const learnMoreButton = await screen.findByText( t( "LEARN-MORE-ABOUT-THIS-SPECIES" ) );
- await act( async ( ) => actor.press( learnMoreButton ) );
- expect( mockPush ).toHaveBeenCalledWith( "TaxonDetails", {
- id: mockObservation.taxon.id
- } );
- } );
-
- it( "should not show learn more button when offline", async ( ) => {
- useNetInfo.mockImplementation( ( ) => ( { isConnected: false } ) );
- renderAppWithComponent( );
- const learnMoreButton = screen.queryByText( t( "LEARN-MORE-ABOUT-THIS-SPECIES" ) );
- expect( learnMoreButton ).toBeFalsy( );
+ it( "should call navigation.push on learn more button press", async ( ) => {
+ const actor = userEvent.setup( );
+ renderAppWithComponent( );
+ const learnMoreButton = await screen.findByText( t( "LEARN-MORE-ABOUT-THIS-SPECIES" ) );
+ await act( async ( ) => actor.press( learnMoreButton ) );
+ expect( mockPush ).toHaveBeenCalledWith( "TaxonDetails", {
+ id: mockObservation.taxon.id
} );
} );
+
+ it( "should not show learn more button when offline", async ( ) => {
+ useNetInfo.mockImplementation( ( ) => ( { isConnected: false } ) );
+ renderAppWithComponent( );
+ const learnMoreButton = screen.queryByText( t( "LEARN-MORE-ABOUT-THIS-SPECIES" ) );
+ expect( learnMoreButton ).toBeFalsy( );
+ } );
} );