mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-06 05:56:19 +01:00
Skip non-identifier React keys in shim test
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
0cbb7407cb
commit
ac390c3f50
1 file changed
+1
@@ -312,6 +312,7 @@ describe("plugin React shim", () => {
|
||||
|
||||
for (const name of Object.keys(React).sort()) {
|
||||
if (name === "default") continue;
|
||||
if (!/^[A-Za-z_$][\w$]*$/.test(name)) continue;
|
||||
expect(source).toContain(`export const ${name} = R.${name};`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user