mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[test] Update stale test expectations
This commit is contained in:
+6
-6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user