Files
tsgo/internal/fourslash/tests/rangeFormatInsideJSDocComment_test.go

24 lines
556 B
Go

package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestRangeFormatStartingInsideJSDocComment(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
content := "// @Filename: /a.ts\n" +
"/**\n" +
" * @a\n" +
" * `\n" +
"/*s*/ * @b\n" +
" */\n" +
"export function f() {}/*e*/"
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.FormatSelection(t, "s", "e")
}