mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-04-02 22:41:13 +08:00
22 lines
438 B
JavaScript
22 lines
438 B
JavaScript
import React from 'react'
|
|
|
|
import {shallow, mount, render} from 'enzyme'
|
|
import chai, {expect} from 'chai'
|
|
|
|
import Rect from '../../src/custom/Rect'
|
|
|
|
describe('<Rect />', () => {
|
|
let wrapper
|
|
|
|
beforeEach(() => {
|
|
wrapper = shallow(<Rect />)
|
|
})
|
|
|
|
it('has defaults props', () => {
|
|
const props = wrapper.props()
|
|
|
|
for ( let key in props )
|
|
expect(props[key]).to.not.equal(undefined)
|
|
})
|
|
})
|