diff --git a/components/badge/badge.js b/components/badge/badge.js
index 6aaa19f1..a7a10bc5 100644
--- a/components/badge/badge.js
+++ b/components/badge/badge.js
@@ -30,7 +30,7 @@ const Badge = ({ arrow, border, children, mods, position, title, visible, ...oth
{border &&
}
{arrow && (position === 'right' || position === 'left') ? : null}
- ) : ;
+ ) : null;
}
if (!children) {
diff --git a/tests/jest.config.json b/tests/jest.config.json
index 47ad8502..3d7269af 100644
--- a/tests/jest.config.json
+++ b/tests/jest.config.json
@@ -21,7 +21,7 @@
],
"rootDir": "../",
"setupFiles": [
- "/tests/setupTests.js"
+ "./tests/setupTests.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
diff --git a/tests/unit/badge/__snapshots__/badge.spec.js.snap b/tests/unit/badge/__snapshots__/badge.spec.js.snap
index e20fea94..29383725 100644
--- a/tests/unit/badge/__snapshots__/badge.spec.js.snap
+++ b/tests/unit/badge/__snapshots__/badge.spec.js.snap
@@ -13,7 +13,6 @@ exports[`Badge should render content without badge when badge is not visible 1`]
className="ui-badge"
>
Badge Content
-
`;
diff --git a/tests/unit/dropDown/__snapshots__/dropDown.render.spec.js.snap b/tests/unit/dropDown/__snapshots__/dropDown.render.spec.js.snap
index 5bdad002..6edff1c4 100644
--- a/tests/unit/dropDown/__snapshots__/dropDown.render.spec.js.snap
+++ b/tests/unit/dropDown/__snapshots__/dropDown.render.spec.js.snap
@@ -1,1452 +1,635 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DropDown: render should return base dropdown with passed array value 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return base dropdown with passed number value 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return base dropdown with passed string value 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return base dropdown with required fields 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return clearable dropdown 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return dropdown with icon 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return dropdown with passed name 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return dropdown with shifting viewport enabled 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return dropdown with status 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return filter dropdown 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return multi dropdown 1`] = `
-
-
-
+
+
+
`;
exports[`DropDown: render should return searchable dropdown 1`] = `
-
-
-
+
+
+
`;
diff --git a/tests/unit/dropDown/dropDown.render.spec.js b/tests/unit/dropDown/dropDown.render.spec.js
index 72a440e0..9e209ab1 100644
--- a/tests/unit/dropDown/dropDown.render.spec.js
+++ b/tests/unit/dropDown/dropDown.render.spec.js
@@ -1,10 +1,10 @@
-import { mount, shallow } from 'enzyme';
+import { shallow } from 'enzyme';
import React from 'react';
import DropDown from '../../../components/dropDown/dropDown';
describe('DropDown: render', () => {
it('should return base dropdown with required fields', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -14,7 +14,7 @@ describe('DropDown: render', () => {
});
it('should return base dropdown with passed string value', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -25,7 +25,7 @@ describe('DropDown: render', () => {
});
it('should return base dropdown with passed number value', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -36,7 +36,7 @@ describe('DropDown: render', () => {
});
it('should return base dropdown with passed array value', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -47,7 +47,7 @@ describe('DropDown: render', () => {
});
it('should return clearable dropdown', () => {
- const component = mount(
+ const component = shallow(
{}}
@@ -58,7 +58,7 @@ describe('DropDown: render', () => {
});
it('should return multi dropdown', () => {
- const component = mount(
+ const component = shallow(
{}}
@@ -69,7 +69,7 @@ describe('DropDown: render', () => {
});
it('should return dropdown with passed name', () => {
- const component = mount(
+ const component = shallow(
{}}
@@ -80,7 +80,7 @@ describe('DropDown: render', () => {
});
it('should return dropdown with shifting viewport enabled', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -91,7 +91,7 @@ describe('DropDown: render', () => {
});
it('should return searchable dropdown', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -102,7 +102,7 @@ describe('DropDown: render', () => {
});
it('should return filter dropdown', () => {
- const component = mount(
+ const component = shallow(
{}}
@@ -113,7 +113,7 @@ describe('DropDown: render', () => {
});
it('should return dropdown with status', () => {
- const component = mount(
+ const component = shallow(
{}}
options={[]}
@@ -124,19 +124,13 @@ describe('DropDown: render', () => {
});
it('should return dropdown with icon', () => {
- const component = mount(
+ const component = shallow(
{}}
- options={[{ checked: true, label: 'One', value: 'one' }, { checked: false, label: 'Two', value: 'two' }]}
+ options={[]}
/>
);
-
- component
- .find('.Select-arrow')
- .at(0)
- .simulate('mousedown', {});
-
expect(component).toMatchSnapshot();
});
});