From e0c1e13d1e9c75d537110882f4c7e88a9918e9e5 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 20 Aug 2018 16:44:46 +0200 Subject: [PATCH] Fixed tests --- test/servers/ServersDropdown.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/servers/ServersDropdown.test.js b/test/servers/ServersDropdown.test.js index 3f8013f0..dde12a82 100644 --- a/test/servers/ServersDropdown.test.js +++ b/test/servers/ServersDropdown.test.js @@ -2,6 +2,7 @@ import { identity } from 'ramda'; import React from 'react'; import { ServersDropdown } from '../../src/servers/ServersDropdown'; import { shallow } from 'enzyme'; +import { DropdownItem, DropdownToggle } from 'reactstrap'; describe('', () => { let wrapped; @@ -13,10 +14,10 @@ describe('', () => { afterEach(() => wrapped.unmount()); 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', () => { - expect(wrapped.find('DropdownToggle').length).toEqual(1); + expect(wrapped.find(DropdownToggle).length).toEqual(1); }); });