@samitouri / QOS-React-2 / commits / e762d5730b

[test] Update stale test expectations

Sathya Gunasekaran committed Jun 23, 2023 at 14:51 UTC e762d5730bb25f5faf463165d2b98af4865f0a16
1 file changed +6 -6
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.useMemo-deps-array-not-cleared.expect.md
+6 -6
@@ -2,12 +2,12 @@
2 ## Input
3
4 ```javascript
5 -function App({text, hasDeps}) {
5 +function App({ text, hasDeps }) {
6 const resolvedText = useMemo(
7 () => {
8 return text.toUpperCase();
9 },
10 - hasDeps ? null : [text], // should be DCE'd
10 + hasDeps ? null : [text] // should be DCE'd
11 );
12 return resolvedText;
13 }
@@ -18,9 +18,9 @@ function App({text, hasDeps}) {
18
19 ```javascript
20 import { unstable_useMemoCache as useMemoCache } from "react";
21 -function App(t26) {
21 +function App(t25) {
22 const $ = useMemoCache(2);
23 - const { text, hasDeps } = t26;
23 + const { text, hasDeps } = t25;
24
25 hasDeps ? null : [text];
26 const c_0 = $[0] !== text;
@@ -32,8 +32,8 @@ function App(t26) {
32 } else {
33 t0 = $[1];
34 }
35 - const t19 = t0;
36 - const resolvedText = t19;
35 + const t18 = t0;
36 + const resolvedText = t18;
37 return resolvedText;
38 }
39