From 9fc911a43bfde0f3b947ed8a3a517a6570c7005b Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 11:32:31 +0300 Subject: [PATCH] fix: Update test snapshots & eslint findings --- .../createPseudoModulesInfo.ts | 2 +- test/lib/linter/snapshots/linter.ts.md | 4 ++-- test/lib/linter/snapshots/linter.ts.snap | Bin 7834 -> 7850 bytes .../xmlTemplate/snapshots/transpiler.ts.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 9df34a1c3..0d13c986e 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 507a10944..d333f62e9 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/snap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lTemplate/snapshots/transpiler.ts.md index 614d94eaa..9882dca26 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`.