32 lines
828 B
Go
32 lines
828 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual quickInfoJSExport"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestQuickInfoJSExport(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: a.js
|
|
// @allowJs: true
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
const testString = {
|
|
one: "1",
|
|
two: "2"
|
|
};
|
|
|
|
export { test/**/String };`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyQuickInfoAt(t, "", "(alias) type testString = string\n(alias) const testString: {\n one: string;\n two: string;\n}\nexport testString", "")
|
|
}
|