mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Finalized failing test case.
This commit is contained in:
committed by
GitHub
parent
ea2c290ba8
commit
d954948394
@@ -1,14 +1,21 @@
|
||||
/// <reference path="./fourslash.ts" />
|
||||
|
||||
// @allowJs: true
|
||||
// @Filename: /library.js
|
||||
// @module: commonjs
|
||||
// @checkJs: true
|
||||
|
||||
// @Filename: ./library.js
|
||||
//// module.exports.aaa = function() {}
|
||||
//// module.exports.bbb = function() {}
|
||||
|
||||
// @Filename: /foo.js
|
||||
// @Filename: ./foo.js
|
||||
//// var aaa = require("./library.js").aaa;
|
||||
//// aaa();
|
||||
//// /**/bbb
|
||||
//// /*$*/bbb
|
||||
|
||||
goTo.marker();
|
||||
verify.getAndApplyCodeFix(ts.Diagnostics.Cannot_find_name_0.code);
|
||||
goTo.marker("$")
|
||||
verify.codeFixAvailable([
|
||||
{ description: "Import 'bbb' from module \"./library.js\"" },
|
||||
{ description: "Ignore this error message" },
|
||||
{ description: "Disable checking for this file" },
|
||||
{ description: "Convert to ES module" },
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user