2 * Copyright © 2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
25 } from 'features/version/inputOutput/inputOutputSelectors';
27 describe('Input/Output Selectors', () => {
31 id: '1e659854c7e240c881f1dd8d5bd833cc',
33 description: 'Initial version',
35 creationTime: '2018-07-19T13:09:39.066+0000',
36 modificationTime: '2018-07-19T13:09:39.355+0000',
97 types: ['String', 'Boolean', 'Integer', 'Float'],
100 alreadyExists: [1, 2],
101 invalidCharacters: []
104 alreadyExists: [1, 2],
105 invalidCharacters: []
112 it('should `getInputOutput`', () => {
113 expect(getInputOutput(state)).toEqual(state.currentVersion.inputOutput);
116 it('should `getCurrent`', () => {
117 expect(getCurrent(state)).toEqual(
118 state.currentVersion.inputOutput.current
122 it('should `getIsShowInputs`', () => {
123 expect(getIsShowInputs(state)).toBeFalsy();
126 it('should `getSearch`', () => {
127 expect(getSearch(state)).toEqual(
128 state.currentVersion.inputOutput.search
132 it('should `getDataRows`', () => {
133 expect(getDataRows(state)).toEqual(
134 state.currentVersion.inputOutput.outputs
138 it('should `getTypes`', () => {
139 expect(getTypes(state)).toEqual(state.currentVersion.inputOutput.types);
142 it('should `getError`', () => {
143 expect(getError(state)).toEqual(
144 state.currentVersion.inputOutput.error[
145 state.currentVersion.inputOutput.current