Files
kjol/tools/tsgo/internal/fourslash/tests/gen/formattingCrash_test.go
2026-07-09 16:50:43 -04:00

32 lines
961 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual formattingCrash"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/core"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestFormattingCrash(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `/**/module Default{
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
opts131 := f.GetOptions()
opts131.FormatCodeSettings.PlaceOpenBraceOnNewLineForFunctions = core.TSTrue
f.Configure(t, opts131)
opts199 := f.GetOptions()
opts199.FormatCodeSettings.PlaceOpenBraceOnNewLineForControlBlocks = core.TSTrue
f.Configure(t, opts199)
f.FormatDocument(t, "")
f.GoToMarker(t, "")
f.VerifyCurrentLineContent(t, `module Default`)
}