28 lines
841 B
Go
28 lines
841 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual renameJsExports01"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestRenameJsExports01(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @allowJs: true
|
|
// @Filename: a.js
|
|
[|exports.[|{| "contextRangeIndex": 0 |}area|] = function (r) { return r * r; }|]
|
|
// @Filename: b.js
|
|
var mod = require('./a');
|
|
var t = mod./*1*/[|area|](10);`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineFindAllReferences(t, "1")
|
|
f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "area")
|
|
}
|