Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
function erased
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 28, 2023
1 parent bf4dbb6 commit 7b58d9e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@ describe('Examples', () => {

describe('Zustand', ()=>{

const getByTextContent = (text) => {
// Passing function to `getByText`
return screen.getByText((content, element) => {
const hasText = element => element.textContent === text
const elementHasText = hasText(element)
const childrenDontHaveText = Array.from(element?.children || []).every(child => !hasText(child))
return elementHasText && childrenDontHaveText
})
}

test('testing the whole app except the gpt request', async () => {
const user = userEvent.setup();

Expand Down

0 comments on commit 7b58d9e

Please sign in to comment.