UNPKG

@roo-ui/components

Version:

23 lines (18 loc) 493 B
import React from 'react'; import { qantas as theme } from '@roo-ui/themes'; import { shallowWithTheme } from '@roo-ui/test-utils'; import CalendarMonth from '.'; describe('<CalendarMonth />', () => { let wrapper; const props = { month: 'Jul', year: 2018, stacked: true, }; beforeEach(() => { wrapper = shallowWithTheme(<CalendarMonth {...props}>Days</CalendarMonth>, theme); }); it('renders correctly', () => { expect(wrapper).toMatchSnapshot(); }); });