Migrate sdc-sdc-workflow-designer docs
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-ui / src / main / frontend / src / features / workflow / overview / __tests__ / OverviewView_snapshot-test.js
1 /*
2 * Copyright © 2018 European Support Limited
3 *
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
7 *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16 import React from 'react';
17 import renderer from 'react-test-renderer';
18
19 import OverviewView from 'features/workflow/overview/OverviewView';
20
21 describe('OverviewView Snapshot', () => {
22     it('renders correctly', () => {
23         const workflow = {
24             name: 'wf1',
25             description: 'desc 1',
26             id: 'id1'
27         };
28         const match = {
29             params: {
30                 workflowId: 'id1'
31             }
32         };
33         const tree = renderer
34             .create(<OverviewView workflow={workflow} match={match} />)
35             .toJSON();
36
37         expect(tree).toMatchSnapshot();
38     });
39 });