Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update App.test.tsx #25

Closed
wants to merge 1 commit into from
Closed

Update App.test.tsx #25

wants to merge 1 commit into from

Conversation

radeva
Copy link
Contributor

@radeva radeva commented Aug 9, 2024

No description provided.

Copy link

flyci-prod bot commented Aug 9, 2024

FlyCI Wingman Report

FlyCI Wingman prepared a .patch file for you:

Changes
diff --git a/__tests__/App.test.tsx b/__tests__/App.test.tsx
index 1ab769c..875e329 100644
--- a/__tests__/App.test.tsx
+++ b/__tests__/App.test.tsx
@@ -1,7 +1,3 @@
-/**
- * @format
- */
-
 import 'react-native';
 import React from 'react';
 import { render, screen } from '@testing-library/react-native';
@@ -26,5 +22,5 @@ it('should render Step One', async () => {
 
   const stepOne = await screen.findByText('Step One');
 
-  expect(stepOne).toHaveTextContent('Step Two');
+  expect(stepOne).toHaveTextContent('Step One');
 });
Apply Changes

Execute the following command in your shell at the root of your repo to apply the patch:

echo "diff --git a/__tests__/App.test.tsx b/__tests__/App.test.tsx
index 1ab769c..875e329 100644
--- a/__tests__/App.test.tsx
+++ b/__tests__/App.test.tsx
@@ -1,7 +1,3 @@
-/**
- * @format
- */
-
 import 'react-native';
 import React from 'react';
 import { render, screen } from '@testing-library/react-native';
@@ -26,5 +22,5 @@ it('should render Step One', async () => {
 
   const stepOne = await screen.findByText('Step One');
 
-  expect(stepOne).toHaveTextContent('Step Two');
+  expect(stepOne).toHaveTextContent('Step One');
 });
" | git apply -

Alternatively, save the patch to a file (e.g. changes.patch) and apply it with:

git apply changes.patch

Send Feedback

Join our Discord Community to get help, request features, and share feedback. Alternatively, send us an email at [email protected].

@@ -26,5 +26,5 @@ it('should render Step One', async () => {

const stepOne = await screen.findByText('Step One');

expect(stepOne).toHaveTextContent('Step One');
expect(stepOne).toHaveTextContent('Step Two');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, try this:

Suggested change
expect(stepOne).toHaveTextContent('Step Two');
expect(stepOne).toHaveTextContent('Step One');

@radeva radeva closed this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant