Skip to content

Commit 5a9791e

Browse files
committed
🐛 Wrap checkbox group with themr
1 parent 659f313 commit 5a9791e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/checkboxGroup/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3+
import { themr } from 'react-css-themr';
34
import cx from 'classnames';
45
import Checkbox from '../checkbox';
56

@@ -70,4 +71,4 @@ CheckboxGroup.defaultProps = {
7071
theme: defaultTheme,
7172
};
7273

73-
export default CheckboxGroup;
74+
export default themr('CBCheckboxGroup', defaultTheme)(CheckboxGroup);

lib/checkboxGroup/tests/accessibility.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { expect } from 'chai';
3-
import { mount } from 'enzyme';
3+
import { mount, shallow } from 'enzyme';
44
import CheckboxGroup from '..';
55

66
/* eslint-disable no-undef */
@@ -17,7 +17,7 @@ describe('CheckboxGroup accessibility tests', () => {
1717
];
1818

1919
beforeEach(() => {
20-
wrappedComponent = mount(<CheckboxGroup options={options} />);
20+
wrappedComponent = mount(shallow(<CheckboxGroup options={options} />).get(0));
2121
});
2222

2323
afterEach(() => {

0 commit comments

Comments
 (0)