vendor tsgo
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual quickInfoElementAccessDeclaration"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestQuickInfoElementAccessDeclaration(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @checkJs: true
|
||||
// @allowJs: true
|
||||
// @Filename: a.js
|
||||
const mod = {};
|
||||
mod["@@thing1"] = {};
|
||||
mod["/**/@@thing1"]["@@thing2"] = 0;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.GoToMarker(t, "")
|
||||
f.VerifyQuickInfoIs(t, "module mod[\"@@thing1\"]\n(property) mod[\"@@thing1\"]: typeof mod.@@thing1", "")
|
||||
}
|
||||
Reference in New Issue
Block a user