Skip to content

Commit

Permalink
Remove bad mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed May 2, 2024
1 parent 06c5ea4 commit 2202e54
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/unit/next-image-new.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import ReactDOMServer from 'react-dom/server'
import Image from 'next/image'
import cheerio from 'cheerio'

// Since this unit test doesn't check the result of
// ReactDOM.preload(), we can turn it into a noop.
jest.mock('react-dom', () => ({ preload: () => null }))

describe('Image rendering', () => {
it('should render Image on its own', async () => {
const element = React.createElement(Image, {
Expand Down

0 comments on commit 2202e54

Please sign in to comment.