mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
556 B
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")
|
|
}
|