@roo-ui/components
Version:
16 lines • 602 B
JavaScript
import React from 'react';
import { qantas as theme } from '@roo-ui/themes';
import { shallowWithTheme } from '@roo-ui/test-utils';
import { CalendarDay, CalendarEmptyDay } from '.';
describe('<CalendarDay />', function () {
it('renders correctly', function () {
expect(shallowWithTheme(React.createElement(CalendarDay, {
selected: true
}, "21"), theme)).toMatchSnapshot();
});
});
describe('<CalendarEmptyDay />', function () {
it('renders correctly', function () {
expect(shallowWithTheme(React.createElement(CalendarEmptyDay, null, "15"), theme)).toMatchSnapshot();
});
});