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

30 lines
882 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual docCommentTemplateNamespacesAndModules02"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestDocCommentTemplateNamespacesAndModules02(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `/*top*/
namespace n1.
/*n2*/ n2.
/*n3*/ n3 {
}`
capabilities := fourslash.GetDefaultCapabilities()
capabilities.TextDocument.Completion.CompletionItem.SnippetSupport = new(false)
f, done := fourslash.NewFourslash(t, capabilities, content)
defer done()
f.VerifyJSDocCompletion(t, "top", 3, `/** */`, nil)
f.VerifyNoJSDocCompletion(t, "n2")
f.VerifyNoJSDocCompletion(t, "n3")
}