Skip to content

Commit e1b0aa4

Browse files
committed
change button icon spec test not to match exactly
1 parent 69badbc commit e1b0aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/button-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ describe('ButtonIcon', () => {
138138
};
139139

140140
const wrapper = shallow(<ButtonIcon { ...props } />);
141-
expect(wrapper.equals(<Icon { ...expectedProps } />)).toBe(true);
141+
expect(wrapper.matchesElement(<Icon { ...expectedProps } />)).toBe(true);
142142
});
143143
});

0 commit comments

Comments
 (0)