Skip to content

Commit 763f8d0

Browse files
committed
add Button Snapshopt
1 parent 9319f06 commit 763f8d0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/react-ape/renderer/elements/__tests__/Button-test.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ describe('Button', () => {
2525
lineTo: jest.fn(),
2626
quadraticCurveTo: jest.fn(),
2727
font: 'Helvetica',
28-
canvas:{
29-
addEventListener:jest.fn()
30-
}
31-
28+
canvas: {
29+
addEventListener: jest.fn(),
30+
},
3231
},
3332
};
3433

@@ -58,8 +57,7 @@ describe('Button', () => {
5857
expect(font).toEqual(`${ButtonDefaults.textStyle.fontSize} Helvetica`);
5958
expect(quadraticCurveTo.mock.calls.length).toEqual(4);
6059
expect(fillStyle).toBe(color);
61-
expect(Button).toMatchSnapshot()
62-
60+
expect(Button).toMatchSnapshot();
6361
});
6462
});
6563
});

0 commit comments

Comments
 (0)