Skip to content

Commit eeec775

Browse files
committed
Add more test for 10426
1 parent d8ab098 commit eeec775

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference path="../fourslash.ts"/>
2+
3+
// @allowNonTsExtensions: true
4+
// @Filename: a.js
5+
//// /**
6+
//// * Modify the parameter
7+
//// * @param {string} p1
8+
//// */
9+
//// var foo = function (p1) { }
10+
//// module.exports.foo = foo;
11+
//// fo/*1*/
12+
13+
// @Filename: b.ts
14+
//// import a = require("./a");
15+
//// a.fo/*2*/
16+
17+
goTo.marker('1');
18+
verify.completionEntryDetailIs("foo", "var foo: (p1: string) => void", "Modify the parameter");
19+
goTo.marker('2');
20+
verify.completionEntryDetailIs("foo", "(property) a.foo: (p1: string) => void", "Modify the parameter");

0 commit comments

Comments
 (0)