Skip to content

Commit fb5c579

Browse files
committed
tests: update snapshots
1 parent e062002 commit fb5c579

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/snapshots/test.ts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Generated by [AVA](https://avajs.dev).
1313
function Component() {␊
1414
const [a, setA] = React.useState(1);␊
1515
16-
const onClick = () => {␊
16+
const onPress = () => {␊
1717
setA(a + 1);␊
1818
};␊
1919
2020
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, a), /*#__PURE__*/React.createElement("button", {␊
21-
onPress: onClick
21+
onClick: onPress
2222
}, "Press"));␊
2323
}`

test/snapshots/test.ts.snap

0 Bytes
Binary file not shown.

test/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ test('works', (t) => {
1515
function Component(){
1616
let $a = 1;
1717
18-
const onClick = () => {
18+
const onPress = () => {
1919
$a += 1;
2020
}
2121
2222
return <div>
2323
<p>{$a}</p>
24-
<button onPress={onClick}>Press</button>
24+
<button onClick={onPress}>Press</button>
2525
</div>;
2626
}
2727
`

0 commit comments

Comments
 (0)