TypeScript/tests/cases/fourslash/formattingSpaceBetweenParent.ts

15 lines
403 B
TypeScript
Raw Normal View History

2017-07-25 11:24:04 +02:00
/// <reference path='fourslash.ts' />
/////*1*/foo(() => 1);
/////*2*/foo(1);
/////*3*/if((true)){}
format.setOption("InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis", true);
format.document();
goTo.marker("1");
verify.currentLineContentIs("foo( () => 1 );");
goTo.marker("2");
verify.currentLineContentIs("foo( 1 );");
goTo.marker("3");
verify.currentLineContentIs("if ( ( true ) ) { }");