blob: 77b8467791073627d0a608561568583c16a9042f [file] [log] [blame]
svishnev1eb66b72018-01-11 14:39:45 +02001/*
Einav Weiss Keidard2f57942018-02-14 14:00:07 +02002 * Copyright © 2016-2018 European Support Limited
AviZi280f8012017-06-09 02:39:56 +03003 *
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
Einav Weiss Keidard2f57942018-02-14 14:00:07 +02007 *
svishnev1eb66b72018-01-11 14:39:45 +02008 * http://www.apache.org/licenses/LICENSE-2.0
Einav Weiss Keidard2f57942018-02-14 14:00:07 +02009 *
AviZi280f8012017-06-09 02:39:56 +030010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
svishnev1eb66b72018-01-11 14:39:45 +020012 * 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.
AviZi280f8012017-06-09 02:39:56 +030015 */
16
17
18import React from 'react';
Einav Weiss Keidard2f57942018-02-14 14:00:07 +020019import TestUtils from 'react-dom/test-utils';
AviZi280f8012017-06-09 02:39:56 +030020
21import SubmitErrorResponse from 'nfvo-components/SubmitErrorResponse.jsx';
22import {SubmitErrorMessageFactory} from 'test-utils/factories/SubnitErrorMessageFactorie.js';
23
24describe('SubmitErrorResponse test: ', function () {
25 it('basic render test', () => {
26 let props = {
27 validationResponse: SubmitErrorMessageFactory.build()
28 };
29
30 let view = TestUtils.renderIntoDocument(<SubmitErrorResponse {...props} />);
31 expect(view).toBeTruthy();
32 });
33});