@kiwicom/smart-faq
Version:
28 lines (22 loc) • 577 B
JavaScript
// @flow
import * as React from 'react';
import { render } from 'enzyme';
import { themeDefault } from '@kiwicom/nitro/lib/records/Theme';
import { RawContact } from '../Contact';
const mockRefType: any = null;
describe('Contact', () => {
const booking = {
customerSupport: {
phoneNumber: '+3442424242',
},
databaseId: '1234567',
$refType: mockRefType,
};
it('should render phone number', () => {
expect(
render(
<RawContact language="en" booking={booking} theme={themeDefault} />,
),
).toMatchSnapshot();
});
});