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

56 lines
1.3 KiB
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual tripleSlashRefPathCompletionExtensionsAllowJSTrue"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestTripleSlashRefPathCompletionExtensionsAllowJSTrue(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @allowJs: true
// @Filename: test0.ts
/// <reference path="/*0*/
/// <reference path=".//*1*/
/// <reference path="./f/*2*/
// @Filename: f1.ts
// @Filename: f1.js
// @Filename: f1.d.ts
// @Filename: f1.tsx
// @Filename: f1.js
// @Filename: f1.jsx
// @Filename: f1.cs
`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyCompletions(t, f.Markers(), &fourslash.CompletionsExpectedList{
IsIncomplete: false,
ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{
CommitCharacters: &[]string{},
EditRange: Ignored,
},
Items: &fourslash.CompletionsExpectedItems{
Exact: []fourslash.CompletionsExpectedItem{
"f1.d.ts",
"f1.js",
"f1.jsx",
"f1.ts",
"f1.tsx",
},
},
})
}