vendor tsgo
This commit is contained in:
36
tools/tsgo/internal/fourslash/tests/gen/enumUpdate1_test.go
Normal file
36
tools/tsgo/internal/fourslash/tests/gen/enumUpdate1_test.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual enumUpdate1"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestEnumUpdate1(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `namespace M {
|
||||
export enum E {
|
||||
A = 1,
|
||||
B = 2,
|
||||
C = 3,
|
||||
/*1*/
|
||||
}
|
||||
}
|
||||
namespace M {
|
||||
function foo(): M.E {
|
||||
return M.E.A;
|
||||
}
|
||||
}`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyNoErrors(t)
|
||||
f.GoToMarker(t, "1")
|
||||
f.Insert(t, "D = C << 1,")
|
||||
f.VerifyNoErrors(t)
|
||||
}
|
||||
Reference in New Issue
Block a user