add new unit test for used and unused imports
This commit is contained in:
parent
e851e4b00b
commit
3c972102ce
23
tests/cases/fourslash/referencesForImports.ts
Normal file
23
tests/cases/fourslash/referencesForImports.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////declare module "jquery" {
|
||||
//// function $(s: string): any;
|
||||
//// export = $;
|
||||
////}
|
||||
|
||||
|
||||
////import /*1*/$ = require("jquery");
|
||||
/////*2*/$("a");
|
||||
|
||||
|
||||
////import /*3*/$ = require("jquery");
|
||||
|
||||
|
||||
goTo.marker("1");
|
||||
verify.referencesCountIs(2);
|
||||
|
||||
goTo.marker("2");
|
||||
verify.referencesCountIs(2);
|
||||
|
||||
goTo.marker("3");
|
||||
verify.referencesCountIs(1);
|
Loading…
Reference in a new issue