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

39 lines
986 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickInfoInObjectLiteral"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickInfoInObjectLiteral(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `interface Foo {
doStuff(x: string, callback: (a: string) => string);
}
var x1: Foo = {
y/*1*/1: () => {
return "";
} ,
doStuff: (z, callback) => { return callback(this.y); }
}
var value = 3;
class Foo {
static getRandomPosition() {
return {
"row": v/*2*/alue
}
}
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyQuickInfoAt(t, "1", "(property) y1: () => string", "")
f.VerifyQuickInfoAt(t, "2", "var value: number", "")
}