TypeScript/tests/cases/fourslash/completionListInImportClause05.ts

16 lines
565 B
TypeScript
Raw Normal View History

2018-01-10 22:38:32 +01:00
/// <reference path='fourslash.ts' />
// @Filename: app.ts
////import * as A from "/*1*/";
2018-01-10 22:38:32 +01:00
// @Filename: /node_modules/@types/a__b/index.d.ts
////declare module "@e/f" { function fun(): string; }
// @Filename: /node_modules/@types/c__d/index.d.ts
////export declare let x: number;
2018-01-11 00:12:00 +01:00
// NOTE: The node_modules folder is in "/", rather than ".", because it requires
// less scaffolding to mock. In particular, "/" is where we look for type roots.
verify.completions({ marker: "1", exact: ["@e/f", "@a/b", "@c/d"], isNewIdentifierLocation: true });