Skip to content

Commit d954948

Browse files
Finalized failing test case.
1 parent ea2c290 commit d954948

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
/// <reference path="./fourslash.ts" />
22

3-
// @allowJs: true
4-
// @Filename: /library.js
3+
// @module: commonjs
4+
// @checkJs: true
5+
6+
// @Filename: ./library.js
57
//// module.exports.aaa = function() {}
68
//// module.exports.bbb = function() {}
79

8-
// @Filename: /foo.js
10+
// @Filename: ./foo.js
911
//// var aaa = require("./library.js").aaa;
1012
//// aaa();
11-
//// /**/bbb
13+
//// /*$*/bbb
1214

13-
goTo.marker();
14-
verify.getAndApplyCodeFix(ts.Diagnostics.Cannot_find_name_0.code);
15+
goTo.marker("$")
16+
verify.codeFixAvailable([
17+
{ description: "Import 'bbb' from module \"./library.js\"" },
18+
{ description: "Ignore this error message" },
19+
{ description: "Disable checking for this file" },
20+
{ description: "Convert to ES module" },
21+
]);

0 commit comments

Comments
 (0)