mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update CHANGELOG.md for breaking changes, remove outdated comments from test file.
This commit is contained in:
parent
2449163ffb
commit
6e52643f8c
2 changed files with 2 additions and 3 deletions
|
@ -1386,13 +1386,11 @@ test("exportMappings", (t) => {
|
|||
);
|
||||
});
|
||||
|
||||
// const commonJsRe = /\.js$/u;
|
||||
const jsonRe = /\.json$/u;
|
||||
const importOptionsJson = { "with": { "type": "json" } };
|
||||
|
||||
for (const [ exportName, exportPath ] of exportMappings) {
|
||||
test(exportName, async(t) => {
|
||||
// const commonJs = !commonJsRe.test(exportPath);
|
||||
const json = jsonRe.test(exportPath);
|
||||
const importOptions = json ? importOptionsJson : undefined;
|
||||
const importExportName = await import(exportName.replace(/^\./u, packageJson.name), importOptions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue