vendor tsgo
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual referencesForEnums"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestReferencesForEnums(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `enum E {
|
||||
/*1*/value1 = 1,
|
||||
/*2*/"/*3*/value2" = /*4*/value1,
|
||||
/*5*/111 = 11
|
||||
}
|
||||
|
||||
E./*6*/value1;
|
||||
E["/*7*/value2"];
|
||||
E./*8*/value2;
|
||||
E[/*9*/111];`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5", "6", "7", "8", "9")
|
||||
}
|
||||
Reference in New Issue
Block a user