Skip to content

Commit

Permalink
chore(tests): remove warning assertions for text
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Nov 3, 2024
1 parent d3af6bd commit 18505d9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/fiber/tests/renderer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ describe('renderer', () => {
})

it('should gracefully handle text', async () => {
const warn = console.warn
console.warn = jest.fn()

// Mount
await act(async () => root.render(<>one</>))
// Update
Expand All @@ -558,9 +555,6 @@ describe('renderer', () => {
// Suspense
const Test = () => suspend(async () => <>four</>, [])
await act(async () => root.render(<Test />))

expect(console.warn).toHaveBeenCalled()
console.warn = warn
})

it('should gracefully interrupt when building up the tree', async () => {
Expand Down

0 comments on commit 18505d9

Please sign in to comment.