diff options
Diffstat (limited to 'test/snapshots/spread_with_key.debug.tsx')
-rw-r--r-- | test/snapshots/spread_with_key.debug.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/snapshots/spread_with_key.debug.tsx b/test/snapshots/spread_with_key.debug.tsx index 23ca37805..45bfcae20 100644 --- a/test/snapshots/spread_with_key.debug.tsx +++ b/test/snapshots/spread_with_key.debug.tsx @@ -8,10 +8,9 @@ var JSXClassic = require($a66742df); var jsx = require(JSX).jsxDEV, jsxEl = require(JSXClassic).createElement; var { default: React} = require($a66742df); export function SpreadWithTheKey({ className }) { - const rest = {}; return jsxEl("div", { className, - ...rest, + ...{}, onClick: () => console.log("click"), key: "spread-with-the-key" }, "Rendered component containing warning"); @@ -19,7 +18,7 @@ export function SpreadWithTheKey({ className }) { export function test() { console.assert(React.isValidElement(jsx(SpreadWithTheKey, { className: "foo" - }, undefined, false, undefined, this))); + }))); return testDone(import.meta.url); } |