All files / sparkline/__tests__ Sparkline-test.js

100% Statements 8/8
100% Branches 0/0
100% Functions 2/2
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14    1x 1x 1x 1x   1x 1x 1x 1x      
/* global describe, it */
 
import assert from 'assert'
import React from 'react'
import {shallow} from 'enzyme'
import Sparkline from '../'
 
describe('Sparkline', () => {
  it('should work', () => {
    const wrapper = shallow(<Sparkline />)
    assert.equal(wrapper.find('canvas').length, 1)
  })
})