blob: 27be13bc02cfaf770c83c2d9a4ff32104011871e [file] [log] [blame]
svishnev1eb66b72018-01-11 14:39:45 +02001/*
2 * Copyright © 2016-2017 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
svishnev1eb66b72018-01-11 14:39:45 +02007 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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';
svishnevaa2eece2018-01-18 17:52:06 +020019import TestUtils from 'react-addons-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});