mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-04 14:56:16 -05:00
Updated tests
This commit is contained in:
@@ -13,7 +13,5 @@ export declare var y;
|
||||
import y = require("a");
|
||||
|
||||
|
||||
//// [ref.js]
|
||||
var x = 1;
|
||||
//// [b.js]
|
||||
"use strict";
|
||||
|
||||
@@ -12,7 +12,5 @@ export declare var y;
|
||||
//// [b.ts]
|
||||
import y = require("a");
|
||||
|
||||
//// [ref.js]
|
||||
var x = 1;
|
||||
//// [b.js]
|
||||
"use strict";
|
||||
|
||||
@@ -31,9 +31,6 @@ exports.x = 1;
|
||||
//// [file2.js]
|
||||
"use strict";
|
||||
exports.y = 1;
|
||||
//// [file4.js]
|
||||
"use strict";
|
||||
exports.z1 = 1;
|
||||
//// [file1.js]
|
||||
"use strict";
|
||||
var file1_1 = require("folder2/file1");
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
// @Filename: node_modules/anotherMod/index.js
|
||||
//// exports.x = 3;
|
||||
//// exports.y = 'foo';
|
||||
//// exports.z = true;
|
||||
//// /**
|
||||
//// * @param {(number | boolean)} a The first param
|
||||
//// * @param {Array<string>} b The second param
|
||||
//// */
|
||||
//// exports.z = function(a,b){ return "test"; };
|
||||
|
||||
// @Filename: consumer.js
|
||||
//// import * as x from 'myMod';
|
||||
@@ -29,3 +33,6 @@ verify.completionListContains("toFixed", /*displayText:*/ undefined, /*documenta
|
||||
edit.backspace(4);
|
||||
edit.insert('y.');
|
||||
verify.completionListContains("toUpperCase", /*displayText:*/ undefined, /*documentation*/ undefined, "method");
|
||||
edit.backspace(2);
|
||||
edit.insert('z(');
|
||||
verify.currentSignatureHelpIs("z(a: number | boolean, b: string[]): string");
|
||||
|
||||
@@ -179,6 +179,9 @@ module ts {
|
||||
"/a/b/foo.ts",
|
||||
"/a/b/foo.tsx",
|
||||
"/a/b/foo.d.ts",
|
||||
"/c/d.ts",
|
||||
"/c/d.tsx",
|
||||
"/c/d.d.ts",
|
||||
"/a/b/foo/index.ts",
|
||||
"/a/b/foo/index.tsx",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user