40cd0b8dd3
with insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces === false
19 lines
No EOL
478 B
TypeScript
19 lines
No EOL
478 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
/////*1*/const {
|
|
/////*2*/ a,
|
|
/////*3*/ b,
|
|
/////*4*/} = { a: 1, b: 2 };
|
|
|
|
format.setOption('InsertSpaceAfterOpeningAndBeforeClosingNonemptyBraces', false);
|
|
|
|
format.document();
|
|
|
|
goTo.marker("1");
|
|
verify.currentLineContentIs("const {");
|
|
goTo.marker("2");
|
|
verify.currentLineContentIs(" a,");
|
|
goTo.marker("3");
|
|
verify.currentLineContentIs(" b,");
|
|
goTo.marker("4");
|
|
verify.currentLineContentIs("} = {a: 1, b: 2};"); |