Updated tests

This commit is contained in:
Bill Ticehurst
2016-02-13 16:47:15 -08:00
parent 6126f7b493
commit e2df645b16
5 changed files with 11 additions and 8 deletions

View File

@@ -13,7 +13,5 @@ export declare var y;
import y = require("a");
//// [ref.js]
var x = 1;
//// [b.js]
"use strict";

View File

@@ -12,7 +12,5 @@ export declare var y;
//// [b.ts]
import y = require("a");
//// [ref.js]
var x = 1;
//// [b.js]
"use strict";

View File

@@ -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");

View File

@@ -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");

View File

@@ -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",
]);