summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/app/MainScreenWrapperReducer.test.js (renamed from test/MainScreenWrapperReducer.test.js)0
-rw-r--r--test/app/configurableViews/ConfigurableViewActions.test.js (renamed from test/configurableViews/ConfigurableViewActions.test.js)0
-rw-r--r--test/app/configurableViews/ConfigurableViewReducer.test.js (renamed from test/configurableViews/ConfigurableViewReducer.test.js)0
-rw-r--r--test/app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBar.test.js (renamed from test/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBar.test.js)0
-rw-r--r--test/app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarReducer.test.js (renamed from test/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarReducer.test.js)0
-rw-r--r--test/app/globalInlineMessageBar/GlobalInlineMessageBar.test.js (renamed from test/globalInlineMessageBar/GlobalInlineMessageBar.test.js)0
-rw-r--r--test/app/globalInlineMessageBar/GlobalInlineMessageBarAction.test.js (renamed from test/globalInlineMessageBar/GlobalInlineMessageBarAction.test.js)0
-rw-r--r--test/app/globalInlineMessageBar/GlobalInlineMessageBarReducer.test.js (renamed from test/globalInlineMessageBar/GlobalInlineMessageBarReducer.test.js)0
-rw-r--r--test/app/networking/NetworkCalls.test.js (renamed from test/networking/NetworkCalls.test.js)0
-rw-r--r--test/app/networking/NetworkUtil.test.js (renamed from test/networking/NetworkUtil.test.js)0
-rw-r--r--test/app/tierSupport/SelectedNodeDetails.test.js (renamed from test/tierSupport/SelectedNodeDetails.test.js)0
-rw-r--r--test/app/tierSupport/SelectedNodeDetailsReducer.test.js (renamed from test/tierSupport/SelectedNodeDetailsReducer.test.js)0
-rw-r--r--test/app/tierSupport/TierSupportActions.test.js (renamed from test/tierSupport/TierSupportActions.test.js)0
-rw-r--r--test/app/tierSupport/TierSupportReducer.test.js (renamed from test/tierSupport/TierSupportReducer.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearch.test.js (renamed from test/vnfSearch/VnfSearch.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchActions.test.js (renamed from test/vnfSearch/VnfSearchActions.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchNfRoleVisualization.test.js (renamed from test/vnfSearch/VnfSearchNfRoleVisualization.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchNfTypeVisualization.test.js (renamed from test/vnfSearch/VnfSearchNfTypeVisualization.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.test.js (renamed from test/vnfSearch/VnfSearchOrchestratedStatusVisualization.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchProvStatusVisualization.test.js (renamed from test/vnfSearch/VnfSearchProvStatusVisualization.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchReducer.test.js (renamed from test/vnfSearch/VnfSearchReducer.test.js)0
-rw-r--r--test/app/vnfSearch/VnfSearchTotalCountVisualization.test.js (renamed from test/vnfSearch/VnfSearchTotalCountVisualization.test.js)0
-rw-r--r--test/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.test.js (renamed from test/autoCompleteSearchBar/AutoCompleteSearchBar.test.js)0
-rw-r--r--test/generic-components/notifications/NotificationReducer.test.js197
-rw-r--r--test/generic-components/treeNode/TreeNode.test.js41
-rw-r--r--test/input/SelectInput.test.js13
-rw-r--r--test/input/ToggleInput.test.js12
27 files changed, 0 insertions, 263 deletions
diff --git a/test/MainScreenWrapperReducer.test.js b/test/app/MainScreenWrapperReducer.test.js
index e9324cc..e9324cc 100644
--- a/test/MainScreenWrapperReducer.test.js
+++ b/test/app/MainScreenWrapperReducer.test.js
diff --git a/test/configurableViews/ConfigurableViewActions.test.js b/test/app/configurableViews/ConfigurableViewActions.test.js
index 9d7bc9e..9d7bc9e 100644
--- a/test/configurableViews/ConfigurableViewActions.test.js
+++ b/test/app/configurableViews/ConfigurableViewActions.test.js
diff --git a/test/configurableViews/ConfigurableViewReducer.test.js b/test/app/configurableViews/ConfigurableViewReducer.test.js
index 0c5c46e..0c5c46e 100644
--- a/test/configurableViews/ConfigurableViewReducer.test.js
+++ b/test/app/configurableViews/ConfigurableViewReducer.test.js
diff --git a/test/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBar.test.js b/test/app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBar.test.js
index 25676b7..25676b7 100644
--- a/test/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBar.test.js
+++ b/test/app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBar.test.js
diff --git a/test/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarReducer.test.js b/test/app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarReducer.test.js
index 1078df6..1078df6 100644
--- a/test/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarReducer.test.js
+++ b/test/app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarReducer.test.js
diff --git a/test/globalInlineMessageBar/GlobalInlineMessageBar.test.js b/test/app/globalInlineMessageBar/GlobalInlineMessageBar.test.js
index 9dc2a28..9dc2a28 100644
--- a/test/globalInlineMessageBar/GlobalInlineMessageBar.test.js
+++ b/test/app/globalInlineMessageBar/GlobalInlineMessageBar.test.js
diff --git a/test/globalInlineMessageBar/GlobalInlineMessageBarAction.test.js b/test/app/globalInlineMessageBar/GlobalInlineMessageBarAction.test.js
index 4def5ac..4def5ac 100644
--- a/test/globalInlineMessageBar/GlobalInlineMessageBarAction.test.js
+++ b/test/app/globalInlineMessageBar/GlobalInlineMessageBarAction.test.js
diff --git a/test/globalInlineMessageBar/GlobalInlineMessageBarReducer.test.js b/test/app/globalInlineMessageBar/GlobalInlineMessageBarReducer.test.js
index 62389b4..62389b4 100644
--- a/test/globalInlineMessageBar/GlobalInlineMessageBarReducer.test.js
+++ b/test/app/globalInlineMessageBar/GlobalInlineMessageBarReducer.test.js
diff --git a/test/networking/NetworkCalls.test.js b/test/app/networking/NetworkCalls.test.js
index 373fbac..373fbac 100644
--- a/test/networking/NetworkCalls.test.js
+++ b/test/app/networking/NetworkCalls.test.js
diff --git a/test/networking/NetworkUtil.test.js b/test/app/networking/NetworkUtil.test.js
index 1743813..1743813 100644
--- a/test/networking/NetworkUtil.test.js
+++ b/test/app/networking/NetworkUtil.test.js
diff --git a/test/tierSupport/SelectedNodeDetails.test.js b/test/app/tierSupport/SelectedNodeDetails.test.js
index 5f97626..5f97626 100644
--- a/test/tierSupport/SelectedNodeDetails.test.js
+++ b/test/app/tierSupport/SelectedNodeDetails.test.js
diff --git a/test/tierSupport/SelectedNodeDetailsReducer.test.js b/test/app/tierSupport/SelectedNodeDetailsReducer.test.js
index 238d21c..238d21c 100644
--- a/test/tierSupport/SelectedNodeDetailsReducer.test.js
+++ b/test/app/tierSupport/SelectedNodeDetailsReducer.test.js
diff --git a/test/tierSupport/TierSupportActions.test.js b/test/app/tierSupport/TierSupportActions.test.js
index 62485ee..62485ee 100644
--- a/test/tierSupport/TierSupportActions.test.js
+++ b/test/app/tierSupport/TierSupportActions.test.js
diff --git a/test/tierSupport/TierSupportReducer.test.js b/test/app/tierSupport/TierSupportReducer.test.js
index 9825a06..9825a06 100644
--- a/test/tierSupport/TierSupportReducer.test.js
+++ b/test/app/tierSupport/TierSupportReducer.test.js
diff --git a/test/vnfSearch/VnfSearch.test.js b/test/app/vnfSearch/VnfSearch.test.js
index 3875543..3875543 100644
--- a/test/vnfSearch/VnfSearch.test.js
+++ b/test/app/vnfSearch/VnfSearch.test.js
diff --git a/test/vnfSearch/VnfSearchActions.test.js b/test/app/vnfSearch/VnfSearchActions.test.js
index e1c3733..e1c3733 100644
--- a/test/vnfSearch/VnfSearchActions.test.js
+++ b/test/app/vnfSearch/VnfSearchActions.test.js
diff --git a/test/vnfSearch/VnfSearchNfRoleVisualization.test.js b/test/app/vnfSearch/VnfSearchNfRoleVisualization.test.js
index 2265e6e..2265e6e 100644
--- a/test/vnfSearch/VnfSearchNfRoleVisualization.test.js
+++ b/test/app/vnfSearch/VnfSearchNfRoleVisualization.test.js
diff --git a/test/vnfSearch/VnfSearchNfTypeVisualization.test.js b/test/app/vnfSearch/VnfSearchNfTypeVisualization.test.js
index 485a822..485a822 100644
--- a/test/vnfSearch/VnfSearchNfTypeVisualization.test.js
+++ b/test/app/vnfSearch/VnfSearchNfTypeVisualization.test.js
diff --git a/test/vnfSearch/VnfSearchOrchestratedStatusVisualization.test.js b/test/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.test.js
index 2586079..2586079 100644
--- a/test/vnfSearch/VnfSearchOrchestratedStatusVisualization.test.js
+++ b/test/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.test.js
diff --git a/test/vnfSearch/VnfSearchProvStatusVisualization.test.js b/test/app/vnfSearch/VnfSearchProvStatusVisualization.test.js
index f3e7279..f3e7279 100644
--- a/test/vnfSearch/VnfSearchProvStatusVisualization.test.js
+++ b/test/app/vnfSearch/VnfSearchProvStatusVisualization.test.js
diff --git a/test/vnfSearch/VnfSearchReducer.test.js b/test/app/vnfSearch/VnfSearchReducer.test.js
index 381a696..381a696 100644
--- a/test/vnfSearch/VnfSearchReducer.test.js
+++ b/test/app/vnfSearch/VnfSearchReducer.test.js
diff --git a/test/vnfSearch/VnfSearchTotalCountVisualization.test.js b/test/app/vnfSearch/VnfSearchTotalCountVisualization.test.js
index a397ff2..a397ff2 100644
--- a/test/vnfSearch/VnfSearchTotalCountVisualization.test.js
+++ b/test/app/vnfSearch/VnfSearchTotalCountVisualization.test.js
diff --git a/test/autoCompleteSearchBar/AutoCompleteSearchBar.test.js b/test/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.test.js
index 7ba3d11..7ba3d11 100644
--- a/test/autoCompleteSearchBar/AutoCompleteSearchBar.test.js
+++ b/test/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.test.js
diff --git a/test/generic-components/notifications/NotificationReducer.test.js b/test/generic-components/notifications/NotificationReducer.test.js
deleted file mode 100644
index 40d6b05..0000000
--- a/test/generic-components/notifications/NotificationReducer.test.js
+++ /dev/null
@@ -1,197 +0,0 @@
-import NotificationReducer from 'generic-components/notifications/NotificationReducer';
-import NotificationConstants from "generic-components/notifications/NotificationConstants";
-
-
-describe('NotificationReducer', () => {
- const defaultState = {
- type: 'default',
- title: 'some default title',
- msg: 'some default message',
- timeout: 1
- };
-
- it('Should return default state when action type is not supported', () => {
- // given
- const unsupportedAction = {
- type: undefined
- };
-
- // when
- const actualState = NotificationReducer(defaultState, unsupportedAction);
-
- // then
- expect(actualState).toEqual(defaultState);
- });
-
- it('Should return state with type default when action type is info', () => {
- // given
- const expectedState = {
- type: 'default',
- title: 'some title',
- msg: 'some message',
- timeout: 5
- };
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_INFO,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 5
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
-
- it('Should return status with type success when action type is success', () => {
- // given
- const expectedState = {
- type: 'success',
- title: 'some title',
- msg: 'some message',
- timeout: 2
- };
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_SUCCESS,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 2
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
- it('Should return status with type success when action type is success', () => {
- // given
- const expectedState = {
- type: 'success',
- title: 'some title',
- msg: 'some message',
- timeout: 2
- };
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_SUCCESS,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 2
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
- it('Should return status with type error when action type is error', () => {
- // given
- const expectedState = {
- type: 'error',
- title: 'some title',
- msg: 'some message',
- timeout: 2
- };
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_ERROR,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 2
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
- it('Should return status with type error when action type is error', () => {
- // given
- const expectedState = {
- type: 'error',
- title: 'some title',
- msg: 'some message',
- timeout: 2
- };
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_ERROR,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 2
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
- it('Should return status with type warning when action type is warning', () => {
- // given
- const expectedState = {
- type: 'warning',
- title: 'some title',
- msg: 'some message',
- timeout: 2
- };
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_WARNING,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 2
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
- it('Should return null when action type is close', () => {
- // given
- const expectedState = null;
-
- const infoAction = {
- type: NotificationConstants.NOTIFY_CLOSE,
- data: {
- title: "some title",
- msg: "some message",
- timeout: 2
- }
- };
-
- // when
- const actualState = NotificationReducer(defaultState, infoAction);
-
- // then
- expect(actualState).toEqual(expectedState);
- });
-
-});
diff --git a/test/generic-components/treeNode/TreeNode.test.js b/test/generic-components/treeNode/TreeNode.test.js
deleted file mode 100644
index 1c669e6..0000000
--- a/test/generic-components/treeNode/TreeNode.test.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import TreeNode from 'generic-components/treeNode/TreeNode';
-import React from 'react';
-import { mount } from 'enzyme';
-
-describe('TreeNode', () => {
- let treeNode;
-
- beforeEach(() => {
- treeNode = mount(<TreeNode node={{title: 'AAA'}}/>).instance();
- });
-
-
- it('Should be invisible when created', () => {
- // then
- expect(treeNode.state['visible']).toEqual(false)
- });
-
- it('Should be visible when toggled', () => {
- // given
- expect(treeNode.state['visible']).toEqual(false)
-
- // when
- treeNode.toggle();
-
- // then
- expect(treeNode.state['visible']).toEqual(true)
- });
-
- it('Should be invisible when double toggled', () => {
- // given
- expect(treeNode.state['visible']).toEqual(false);
-
- // when
- treeNode.toggle();
- treeNode.toggle();
-
- // then
- expect(treeNode.state['visible']).toEqual(false);
- });
-
-});
diff --git a/test/input/SelectInput.test.js b/test/input/SelectInput.test.js
deleted file mode 100644
index a669361..0000000
--- a/test/input/SelectInput.test.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-import Select from 'react-select';
-
-import SelectInput from 'generic-components/input/SelectInput.jsx';
-
-describe('SelectInput Tests', () => {
- it('render select input - visible', () => {
- const select = mount( <SelectInput /> );
- expect(select).toHaveLength(1); // ensure the message bar is mounted
- expect(select.find(Select)).toHaveLength(1); // ensure the InlineMessage is mounted
- });
-})
diff --git a/test/input/ToggleInput.test.js b/test/input/ToggleInput.test.js
deleted file mode 100644
index 80f0345..0000000
--- a/test/input/ToggleInput.test.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-
-import ToggleInput from 'generic-components/input/ToggleInput.jsx';
-
-describe('ToggleInput Tests', () => {
- it('render toggle input - visible', () => {
- const toggle = mount( <ToggleInput /> );
- expect(toggle).toHaveLength(1); // ensure the message bar is mounted
- expect(toggle.find('input')).toHaveLength(1); // ensure the InlineMessage is mounted
- });
-})