mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 20:19:12 +00:00
14 lines
445 B
JavaScript
14 lines
445 B
JavaScript
/* eslint-env jest */
|
|
import * as React from 'react'
|
|
// import renderer from 'react-test-renderer'
|
|
import { shallow } from 'enzyme'
|
|
import DiscordButton from '../discord-button'
|
|
import 'jest-styled-components'
|
|
|
|
describe('<DiscordButton />', () => {
|
|
it('renders correctly', () => {
|
|
const button = shallow(<DiscordButton>Hello!</DiscordButton>)
|
|
expect(button).toMatchSnapshot()
|
|
expect(button.text().trim()).toEqual('Hello!')
|
|
})
|
|
})
|