[test] Update stale test expectations

This commit is contained in:
Sathya Gunasekaran
2023-06-23 14:51:38 +05:30
parent 0897cc8a0f
commit e762d5730b
@@ -2,12 +2,12 @@
## Input
```javascript
function App({text, hasDeps}) {
function App({ text, hasDeps }) {
const resolvedText = useMemo(
() => {
return text.toUpperCase();
},
hasDeps ? null : [text], // should be DCE'd
hasDeps ? null : [text] // should be DCE'd
);
return resolvedText;
}
@@ -18,9 +18,9 @@ function App({text, hasDeps}) {
```javascript
import { unstable_useMemoCache as useMemoCache } from "react";
function App(t26) {
function App(t25) {
const $ = useMemoCache(2);
const { text, hasDeps } = t26;
const { text, hasDeps } = t25;
hasDeps ? null : [text];
const c_0 = $[0] !== text;
@@ -32,8 +32,8 @@ function App(t26) {
} else {
t0 = $[1];
}
const t19 = t0;
const resolvedText = t19;
const t18 = t0;
const resolvedText = t18;
return resolvedText;
}