rsnext/examples/with-jest/__tests__/testing-library.js
Tim Neutkens 483bd3ddda
Rename ZEIT to Vercel (#12075)
* Find/replace

* Update more URLs

* More rename

* Fix remaining examples

* More updates

* Update create-next-app

* Update remaining text

* Update

Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-21 11:47:12 +02:00

11 lines
342 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 Vercel\./
)
expect(linkElement).toBeInTheDocument()
})