fix(52050): The space before satisfies after an array expression is removed when auto-formatting the statements (#52053)

This commit is contained in:
Oleksandr T
2023-01-05 13:30:11 -08:00
committed by GitHub
parent aae3115838
commit c57fea2a0d
2 changed files with 19 additions and 1 deletions
@@ -0,0 +1,14 @@
/// <reference path="fourslash.ts" />
////type Foo = "a" | "b" | "c";
////const foo1 = ["a"] satisfies Foo[];
////const foo2 = ["a"]satisfies Foo[];
////const foo3 = ["a"] satisfies Foo[];
format.document();
verify.currentFileContentIs(
`type Foo = "a" | "b" | "c";
const foo1 = ["a"] satisfies Foo[];
const foo2 = ["a"] satisfies Foo[];
const foo3 = ["a"] satisfies Foo[];`
);