48 lines
1.0 KiB
Go
48 lines
1.0 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual navbar_contains-no-duplicates"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestNavbar_contains_no_duplicates(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `declare namespace Windows {
|
|
export namespace Foundation {
|
|
export var A;
|
|
export class Test {
|
|
public wow();
|
|
}
|
|
}
|
|
}
|
|
|
|
declare namespace Windows {
|
|
export namespace Foundation {
|
|
export var B;
|
|
export namespace Test {
|
|
export function Boom(): number;
|
|
}
|
|
}
|
|
}
|
|
|
|
class ABC {
|
|
public foo() {
|
|
return 3;
|
|
}
|
|
}
|
|
|
|
namespace ABC {
|
|
export var x = 3;
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineDocumentSymbol(t)
|
|
}
|