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

34 lines
808 B
Go

package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestCompletionsAtTopLevelImportAssignmentNoCrash1(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @filename: /a.ts
import x =/*1*/
class Foo {}
// @filename: /b.ts
import x = /*2*/
class Foo {}
// @filename: /c.ts
import x =/*3*/
`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyCompletions(t, []string{"1", "2", "3"}, &fourslash.CompletionsExpectedList{
IsIncomplete: false,
ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{
CommitCharacters: &[]string{},
},
Items: &fourslash.CompletionsExpectedItems{},
})
}