vendor tsgo
This commit is contained in:
25
tools/tsgo/internal/fourslash/tests/gen/format01_test.go
Normal file
25
tools/tsgo/internal/fourslash/tests/gen/format01_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual format01"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestFormat01(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @lib: es5
|
||||
/**/namespace Default{var x= ( { } ) ;}`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.MarkTestAsStradaServer()
|
||||
f.FormatDocument(t, "")
|
||||
f.GoToMarker(t, "")
|
||||
f.VerifyCurrentLineContent(t, `namespace Default { var x = ({}); }`)
|
||||
}
|
||||
Reference in New Issue
Block a user