Files
tsgo/internal/fourslash/tests/gen/refactorConvertToEsModule_notAtTopLevel_test.go

27 lines
715 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual refactorConvertToEsModule_notAtTopLevel"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestRefactorConvertToEsModule_notAtTopLevel(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @allowJs: true
// @target: esnext
// @Filename: /a.js
(function() {
module.exports = 0;
})();`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifySuggestionDiagnostics(t, nil)
}