2018-01-10 02:15:08 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////const f = promise => {
|
|
|
|
//// await promise;
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.codeFix({
|
2018-12-04 18:03:08 +01:00
|
|
|
index: 0,
|
2018-01-10 02:15:08 +01:00
|
|
|
description: "Add async modifier to containing function",
|
|
|
|
newFileContent:
|
|
|
|
`const f = async promise => {
|
|
|
|
await promise;
|
|
|
|
}`,
|
|
|
|
});
|