mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Add tests for binding elements that need to be renamed
This commit is contained in:
parent
42c9b47add
commit
ef18453166
@ -355,6 +355,16 @@ function [#|f|](): Promise<void>{
|
||||
_testConvertToAsyncFunction("convertToAsyncFunction_objectBindingPattern", `
|
||||
function [#|f|](): Promise<void>{
|
||||
return fetch('https://typescriptlang.org').then(({ result }) => { console.log(result) });
|
||||
}`);
|
||||
_testConvertToAsyncFunction("convertToAsyncFunction_arrayBindingPatternRename", `
|
||||
function [#|f|](): Promise<void>{
|
||||
const result = getResult();
|
||||
return fetch('https://typescriptlang.org').then(([result]) => { console.log(result) });
|
||||
}`);
|
||||
_testConvertToAsyncFunction("convertToAsyncFunction_objectBindingPatternRename", `
|
||||
function [#|f|](): Promise<void>{
|
||||
const result = getResult();
|
||||
return fetch('https://typescriptlang.org').then(({ result }) => { console.log(result) });
|
||||
}`);
|
||||
_testConvertToAsyncFunction("convertToAsyncFunction_basicNoReturnTypeAnnotation", `
|
||||
function [#|f|]() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user