UNPKG

@kiwicom/smart-faq

Version:

Smart FAQ

30 lines (24 loc) 570 B
// @flow import * as React from 'react'; import { render } from 'enzyme'; import { RawContact } from '../Contact'; const mockRefType: any = null; describe('Contact', () => { const booking = { customerSupport: { phoneNumber: '+3442424242', }, databaseId: '1234567', $refType: mockRefType, }; const theme = { orbit: { paletteProductNormal: '#00a991', }, }; it('should render phone number', () => { expect( render(<RawContact language="en" booking={booking} theme={theme} />), ).toMatchSnapshot(); }); });