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.
24 } from 'features/catalog/catalogSelectors';
26 describe('Catalog Selectors', () => {
35 id: '755eab7752374a2380544065b59b082d',
37 description: 'description description 1',
41 id: 'ef8159204dac4c10a85b29ec30b4bd56',
43 description: 'description description 2',
54 it('returns catalog', () => {
55 const state = { catalog };
57 expect(getCatalog(state)).toEqual(catalog);
60 it('returns catalog workflows', () => {
61 const state = { catalog };
63 expect(getWorkflows(state)).toEqual(catalog.workflows);
66 it('returns catalog sort', () => {
67 const state = { catalog };
69 expect(getSort(state)).toEqual(catalog.sort);