28 lines
583 B
Go
28 lines
583 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestAddMemberToModule(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `module A {
|
|
/*var*/
|
|
}
|
|
module /*check*/A {
|
|
var p;
|
|
}`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.GoToMarker(t, "check")
|
|
f.VerifyQuickInfoExists(t)
|
|
f.GoToMarker(t, "var")
|
|
f.Insert(t, "var o;")
|
|
f.GoToMarker(t, "check")
|
|
f.VerifyQuickInfoExists(t)
|
|
}
|