All files / card/__tests__ Card-test.js

100% Statements 11/11
100% Branches 0/0
100% Functions 3/3
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19    1x 1x 1x 1x   1x 1x 1x 1x     1x 1x 1x      
/* global describe, it */
 
import assert from 'assert'
import React from 'react'
import {shallow} from 'enzyme'
import {Card, Title} from '../'
 
describe('Card', () => {
  it('should work', () => {
    const wrapper = shallow(<Card />)
    assert.equal(wrapper.find('.Card').length, 1)
  })
 
  it('should render the title', () => {
    const wrapper = shallow(<Title>some title</Title>)
    assert.equal(wrapper.find('.Card-title').text(), 'some title')
  })
})