diff --git a/tests/cases/fourslash/importFixesWithExistingDottedRequire.ts b/tests/cases/fourslash/importFixesWithExistingDottedRequire.ts index fcfaafa4d11..8dae9bdac8a 100644 --- a/tests/cases/fourslash/importFixesWithExistingDottedRequire.ts +++ b/tests/cases/fourslash/importFixesWithExistingDottedRequire.ts @@ -1,14 +1,21 @@ /// -// @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); \ No newline at end of file +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" }, +]);