Browse Source

update tests for Channel

renovate/lint-staged-8.x
Jonathan Zobro 7 years ago
parent
commit
f922980505
  1. 5
      test/components/Channels.spec.js

5
test/components/Channels.spec.js

@ -1,6 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme'
import { TiPlus } from 'react-icons/lib/ti'
import Channels from '../../app/components/Channels'
import ChannelModal from '../../app/components/Channels/ChannelModal'
import ChannelForm from '../../app/components/Channels/ChannelForm'
@ -72,6 +73,10 @@ describe('Channels', () => {
expect(el.find(ChannelModal)).toHaveLength(1)
expect(el.find(ChannelForm)).toHaveLength(1)
})
it('should have Channels header, and plus button', () => {
expect(el.contains('Channels')).toBe(true)
expect(el.find(TiPlus)).toHaveLength(1)
})
})
describe('channels are loading', () => {

Loading…
Cancel
Save