mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-03 14:57:22 +03:00
Fixed tests
This commit is contained in:
parent
2b373cc4af
commit
e0c1e13d1e
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ import { identity } from 'ramda';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ServersDropdown } from '../../src/servers/ServersDropdown';
|
import { ServersDropdown } from '../../src/servers/ServersDropdown';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
import { DropdownItem, DropdownToggle } from 'reactstrap';
|
||||||
|
|
||||||
describe('<ServersDropdown />', () => {
|
describe('<ServersDropdown />', () => {
|
||||||
let wrapped;
|
let wrapped;
|
||||||
|
@ -13,10 +14,10 @@ describe('<ServersDropdown />', () => {
|
||||||
afterEach(() => wrapped.unmount());
|
afterEach(() => wrapped.unmount());
|
||||||
|
|
||||||
it('contains the list of servers', () => {
|
it('contains the list of servers', () => {
|
||||||
expect(wrapped.find('DropdownItem').length).toEqual(servers.length);
|
expect(wrapped.find(DropdownItem).length).toEqual(servers.length + 2);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('contains a toggle with proper title', () => {
|
it('contains a toggle with proper title', () => {
|
||||||
expect(wrapped.find('DropdownToggle').length).toEqual(1);
|
expect(wrapped.find(DropdownToggle).length).toEqual(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue