TypeScript/tests/cases/fourslash/codeFixAwaitInSyncFunction2.ts

14 lines
285 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
////const f = function() {
//// await Promise.resolve();
////}
verify.codeFix({
description: "Add async modifier to containing function",
newFileContent:
`const f = async function() {
await Promise.resolve();
}`,
});