diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 9df34a1c..0d13c986 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -19,7 +19,7 @@ async function fetchAndExtractAPIJsons(url: string) { } if (response.body && response.body instanceof ReadableStream) { - const zipFileName: string = url.split("/").pop() as string; + const zipFileName: string = url.split("/").pop()!; const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); diff --git a/test/lib/linter/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index 507a1094..d333f62e 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -293,7 +293,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Import of pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Import library and reuse the enum from there', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'ui5-linter-no-pseudo-modules', severity: 2, }, { @@ -766,7 +766,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Import of pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Import library and reuse the enum from there', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'ui5-linter-no-pseudo-modules', severity: 2, }, { diff --git a/test/lib/linter/snapshots/linter.ts.snap b/test/lib/linter/snapshots/linter.ts.snap index 671489ea..8341c582 100644 Binary files a/test/lib/linter/snapshots/linter.ts.snap and b/test/lib/linter/snapshots/linter.ts.snap differ diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md index 614d94ea..9882dca2 100644 --- a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md +++ b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md @@ -1,4 +1,4 @@ -# Snapshot report for `test/lib/linter/xml/transpiler.ts` +# Snapshot report for `test/lib/linter/xmlTemplate/transpiler.ts` The actual snapshot is saved in `transpiler.ts.snap`.