parent
89ad612165
commit
2a2a4e7c05
1 changed files with 0 additions and 4 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue