Skip to content

Commit f291174

Browse files
committed
added a test for Chips with chipTheme
1 parent f19c2f9 commit f291174

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

__tests__/Chips.test.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ const minProps = {
88
onChange: () => {}
99
};
1010

11+
const withChipTheme = {
12+
...minProps,
13+
chipTheme: { chip: { padding: 100 } }
14+
}
15+
1116
test('Renders without exploding', () => {
1217

1318
const chips = shallow(
@@ -16,4 +21,14 @@ test('Renders without exploding', () => {
1621

1722
expect(chips);
1823

19-
});
24+
});
25+
26+
test('Renders with chipTheme without exploiding', () => {
27+
28+
const chips = shallow(
29+
<Chips {...withChipTheme} />
30+
);
31+
32+
expect(chips);
33+
34+
});

0 commit comments

Comments
 (0)