vendor tsgo
This commit is contained in:
22
tools/tsgo/internal/fourslash/tests/gen/enumAddition_test.go
Normal file
22
tools/tsgo/internal/fourslash/tests/gen/enumAddition_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual enumAddition"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestEnumAddition(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `namespace m { export enum Color { Red } }
|
||||
var /**/t = m.Color.Red + 1;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyQuickInfoAt(t, "", "var t: number", "")
|
||||
}
|
||||
Reference in New Issue
Block a user