mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 05:55:11 -05:00
Added test for formatting on default keyword
This commit is contained in:
12
tests/cases/fourslash/formattingOfExportDefault.ts
Normal file
12
tests/cases/fourslash/formattingOfExportDefault.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
////module Foo {
|
||||
/////*1*/ export default class Test { }
|
||||
////}
|
||||
/////*2*/export default function bar() { }
|
||||
|
||||
format.document();
|
||||
goTo.marker("1");
|
||||
verify.currentLineContentIs(" export default class Test { }")
|
||||
goTo.marker("2");
|
||||
verify.currentLineContentIs("export default function bar() { }")
|
||||
Reference in New Issue
Block a user