* Build(deps-dev): bump enzyme from 3.9.0 to 3.10.0 Bumps [enzyme](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme) from 3.9.0 to 3.10.0. - [Release notes](https://github.com/airbnb/enzyme/releases) - [Changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md) - [Commits](https://github.com/airbnb/enzyme/commits/enzyme@3.10.0/packages/enzyme) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * tests: tweak assertion on emtpy attribute
70 lines
1.5 KiB
JavaScript
70 lines
1.5 KiB
JavaScript
import React from 'react'
|
|
import { shallow, render } from 'enzyme'
|
|
import { expect } from 'chai'
|
|
import * as common from './common'
|
|
|
|
import '../enzyme-conf.spec'
|
|
|
|
describe('Common modules', function() {
|
|
describe('<GlobalStyle />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.GlobalStyle />)
|
|
})
|
|
})
|
|
|
|
describe('<BaseFont />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.BaseFont />)
|
|
})
|
|
})
|
|
|
|
describe('<H2 />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.H2 />)
|
|
})
|
|
})
|
|
|
|
describe('<H3 />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.H3 />)
|
|
})
|
|
})
|
|
|
|
describe('<Badge />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.Badge src="/badge/foo-bar-blue.svg" />)
|
|
})
|
|
|
|
it('contains a link to the image', function() {
|
|
const wrapper = render(<common.Badge src="/badge/foo-bar-blue.svg" />)
|
|
expect(wrapper.html()).to.contain(
|
|
'<img alt src="/badge/foo-bar-blue.svg">'
|
|
)
|
|
})
|
|
})
|
|
|
|
describe('<StyledInput />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.StyledInput />)
|
|
})
|
|
})
|
|
|
|
describe('<InlineInput />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.InlineInput />)
|
|
})
|
|
})
|
|
|
|
describe('<BlockInput />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.BlockInput />)
|
|
})
|
|
})
|
|
|
|
describe('<VerticalSpace />', function() {
|
|
it('renders', function() {
|
|
shallow(<common.VerticalSpace />)
|
|
})
|
|
})
|
|
})
|