Files
Danilo Woznica 3212b950d0 Tests (#4)
2017-02-28 20:21:35 -03:00

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)
})
})