Skip to content

Commit 3c97210

Browse files
committed
add new unit test for used and unused imports
1 parent e851e4b commit 3c97210

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////declare module "jquery" {
4+
//// function $(s: string): any;
5+
//// export = $;
6+
////}
7+
8+
9+
////import /*1*/$ = require("jquery");
10+
/////*2*/$("a");
11+
12+
13+
////import /*3*/$ = require("jquery");
14+
15+
16+
goTo.marker("1");
17+
verify.referencesCountIs(2);
18+
19+
goTo.marker("2");
20+
verify.referencesCountIs(2);
21+
22+
goTo.marker("3");
23+
verify.referencesCountIs(1);

0 commit comments

Comments
 (0)