mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 22:15:18 -05:00
add rule to insert space between async keyword and open paren
This commit is contained in:
13
tests/cases/fourslash/formatAsyncKeyword.ts
Normal file
13
tests/cases/fourslash/formatAsyncKeyword.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
/////*1*/let x = async () => 1;
|
||||
/////*2*/let y = async() => 1;
|
||||
/////*3*/let z = async function () { return 1; };
|
||||
|
||||
format.document();
|
||||
goTo.marker("1");
|
||||
verify.currentLineContentIs("let x = async () => 1;");
|
||||
goTo.marker("2");
|
||||
verify.currentLineContentIs("let y = async () => 1;");
|
||||
goTo.marker("3");
|
||||
verify.currentLineContentIs("let z = async function() { return 1; };")
|
||||
Reference in New Issue
Block a user