From a5d3ce4e96475f9de6bf4a51bb6864bf5da0074b Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 25 Sep 2021 00:34:30 -0700 Subject: Add integration test for {}} /> --- integration/snippets/spread_with_key.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 integration/snippets/spread_with_key.tsx (limited to 'integration/snippets/spread_with_key.tsx') diff --git a/integration/snippets/spread_with_key.tsx b/integration/snippets/spread_with_key.tsx new file mode 100644 index 000000000..9c26ea5ba --- /dev/null +++ b/integration/snippets/spread_with_key.tsx @@ -0,0 +1,20 @@ +import React from "react"; + +export function SpreadWithTheKey({ className }: Props) { + const rest = {}; + return ( +
console.log("click")} + > + Rendered component containing warning +
+ ); +} + +export function test() { + console.assert(React.isValidElement()); + return testDone(import.meta.url); +} -- cgit v1.2.3