9a8c3100d2
* New Jest Example * add missing zeit logo * Revert zeit.svg * remove old jest examples * Update jest.config.js
11 lines
344 B
JavaScript
11 lines
344 B
JavaScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import Index from '../pages/index'
|
|
|
|
test('renders deploy link', () => {
|
|
const { getByText } = render(<Index />)
|
|
const linkElement = getByText(
|
|
/Instantly deploy your Next\.js site to a public URL with ZEIT Now\./
|
|
)
|
|
expect(linkElement).toBeInTheDocument()
|
|
})
|