Skip to content

Commit

Permalink
fix: linter issues and chage set
Browse files Browse the repository at this point in the history
  • Loading branch information
vadson71 committed Dec 22, 2023
1 parent d8ab2d3 commit b620101
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .changeset/loud-cows-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@ui5-language-assistant/test-utils": patch
"@ui5-language-assistant/semantic-model": patch
"@ui5-language-assistant/context": patch
"vscode-ui5-language-assistant": patch
"@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext": patch
---

Adaptation to the latest UI5 maintenance changes
6 changes: 1 addition & 5 deletions packages/semantic-model/test/unit/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,7 @@ describe("The ui5-language-assistant semantic model package API", () => {
}

// TODO: old patches may be removed, should be updated continuously
const versions: TestModelVersion[] = [
"1.71.61",
"1.84.41",
"1.96.27"
];
const versions: TestModelVersion[] = ["1.71.61", "1.84.41", "1.96.27"];
for (const version of versions) {
// TODO: consider also openui5?
createModelConsistencyTests("SAPUI5", version);
Expand Down
6 changes: 3 additions & 3 deletions test-packages/test-utils/src/utils/semantic-model-provider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readdirSync } from "fs";
import { readJsonSync, readJson, existsSync } from "fs-extra";
import { resolve, dirname } from "path";
import { filter, reduce, has, forEach, remove, get, find } from "lodash";
import { filter, reduce, has, forEach, get } from "lodash";
import { FetchResponse } from "@ui5-language-assistant/language-server";
import {
UI5Framework,
Expand All @@ -14,7 +14,7 @@ const MODEL_CACHE: Record<TestModelVersion, UI5SemanticModel> =
Object.create(null);

const fixes: Record<TestModelVersion, TypeNameFix> = {
"1.71.61": {
"1.71.61": {
array: "any[]",
Array: "any[]",
bloolean: undefined,
Expand Down Expand Up @@ -125,7 +125,7 @@ const fixes: Record<TestModelVersion, TypeNameFix> = {
},
"1.108.26": {
any: "any",
}
},
};

function getModelFolder(version: TestModelVersion): string {
Expand Down

0 comments on commit b620101

Please sign in to comment.