diff --git a/test/webui/components/help.spec.js b/test/webui/components/help.spec.js
index 19a542a39..e3e04c905 100644
--- a/test/webui/components/help.spec.js
+++ b/test/webui/components/help.spec.js
@@ -1,7 +1,6 @@
/**
* Help component
*/
-
import React from 'react';
import { shallow } from 'enzyme';
import SyntaxHighlighter from 'react-syntax-highlighter/dist/light';
diff --git a/test/webui/components/noitems.spec.js b/test/webui/components/noitems.spec.js
index 27a6f1635..515e135a5 100644
--- a/test/webui/components/noitems.spec.js
+++ b/test/webui/components/noitems.spec.js
@@ -19,8 +19,6 @@ describe(' component', () => {
text: 'This is a test string'
};
const wrapper = shallow();
- expect(wrapper.find('h2').text()).toEqual(
- 'This is a test string'
- );
+ expect(wrapper.find('h2').text()).toEqual('This is a test string');
});
});
diff --git a/test/webui/components/notfound.spec.js b/test/webui/components/notfound.spec.js
index f9a5fccdb..826ff9ea0 100644
--- a/test/webui/components/notfound.spec.js
+++ b/test/webui/components/notfound.spec.js
@@ -8,7 +8,7 @@ import NotFound from '../../../src/webui/src/components/NotFound';
console.error = jest.fn();
-describe(' component', () => {
+describe(' component', () => {
it('should give error for the required fields', () => {
shallow();
expect(console.error).toBeCalled();
diff --git a/test/webui/components/search.spec.js b/test/webui/components/search.spec.js
index 7b294e3d9..0a7730713 100644
--- a/test/webui/components/search.spec.js
+++ b/test/webui/components/search.spec.js
@@ -12,9 +12,9 @@ describe(' component', () => {
it('should give error for the required fields', () => {
const wrapper = shallow();
expect(console.error).toBeCalled();
- expect(wrapper
- .find('input')
- .prop('placeholder')).toEqual('Type to search...');
+ expect(wrapper.find('input').prop('placeholder')).toEqual(
+ 'Type to search...'
+ );
});
it('should have element with correct properties', () => {
@@ -27,9 +27,7 @@ describe(' component', () => {
expect(wrapper.find('input').prop('placeholder')).toEqual(
'Test placeholder'
);
- expect(typeof wrapper
- .find('input')
- .prop('onChange')).toBe('function');
+ expect(typeof wrapper.find('input').prop('onChange')).toBe('function');
});
it('should call the handleSearchInput function', () => {
@@ -41,4 +39,4 @@ describe(' component', () => {
wrapper.find('input').simulate('change');
expect(props.handleSearchInput).toBeCalled();
});
-});
\ No newline at end of file
+});
diff --git a/test/webui/components/store/login.js b/test/webui/components/store/login.js
index 25eb5dc11..d69821465 100644
--- a/test/webui/components/store/login.js
+++ b/test/webui/components/store/login.js
@@ -1,5 +1,7 @@
/**
* API mock for login endpoint
+ * @param {object} config configuration of api call
+ * @returns {promise}
*/
export default function(config) {
return new Promise(function(resolve, reject) {