// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual formatSelectionDocCommentInBlock" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestFormatSelectionDocCommentInBlock(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `{ /*1*//** * Some doc comment *//*2*/ const a = 1; } while (true) { /*3*//** * Some doc comment *//*4*/ }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.FormatSelection(t, "1", "2") f.VerifyCurrentFileContent(t, `{ /** * Some doc comment */ const a = 1; } while (true) { /** * Some doc comment */ }`) f.FormatSelection(t, "3", "4") f.VerifyCurrentFileContent(t, `{ /** * Some doc comment */ const a = 1; } while (true) { /** * Some doc comment */ }`) }