Skip to content

Commit

Permalink
add some typescript test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 17, 2021
1 parent 10afe6b commit 8f80bfd
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -57,7 +57,10 @@ describe("shouldTransform", () => {
"class C { #c; p = obj?.#c(...[]) }",
];

const typescriptPositiveCases = ["(a?.(...[], 0) as any).b"];
const typescriptPositiveCases = [
"(a?.(...[], 0) as any)?.b",
"(a?.(...[], 0) as any)?.()",
];

const typescriptNegativeCases = ["(a?.b as any)(...[], 0)"];

Expand Down

0 comments on commit 8f80bfd

Please sign in to comment.