Skip to content

Commit f3ebb45

Browse files
committed
add size prop to a test to increase test coverage
1 parent 7be4d85 commit f3ebb45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/editor/test/ColorPicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ test('snapshot renders as a popover', () => {
4848
test('inputs fire onChange', () => {
4949
let next
5050
let tree
51-
const onChange = jest.fn(e => (next = e))
51+
const onChange = jest.fn((e) => (next = e))
5252
act(() => {
5353
tree = render(
54-
<ColorPicker color="#f00" onChange={onChange}>
54+
<ColorPicker color="#f00" onChange={onChange} size={512}>
5555
<button>Edit color</button>
5656
</ColorPicker>
5757
)

0 commit comments

Comments
 (0)