2016-08-26 02:39:55 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// Should give completions for all dependencies in package.json
|
|
|
|
|
|
|
|
// @Filename: tests/test0.ts
|
|
|
|
//// import * as foo1 from "m/*import_as0*/
|
|
|
|
//// import foo2 = require("m/*import_equals0*/
|
|
|
|
//// var foo3 = require("m/*require0*/
|
|
|
|
|
|
|
|
// @Filename: package.json
|
|
|
|
//// {
|
|
|
|
//// "dependencies": { "module": "latest" },
|
|
|
|
//// "devDependencies": { "dev-module": "latest" },
|
|
|
|
//// "optionalDependencies": { "optional-module": "latest" },
|
|
|
|
//// "peerDependencies": { "peer-module": "latest" }
|
|
|
|
//// }
|
|
|
|
|
2018-05-01 22:00:13 +02:00
|
|
|
verify.completions({
|
2018-10-29 18:03:25 +01:00
|
|
|
marker: test.markers(),
|
2018-05-03 22:04:08 +02:00
|
|
|
exact: ["module", "dev-module", "peer-module", "optional-module"],
|
2018-05-01 22:00:13 +02:00
|
|
|
isNewIdentifierLocation: true,
|
|
|
|
});
|