mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
23 lines
823 B
Diff
23 lines
823 B
Diff
--- a/lib/util/utils.ts
|
|
+++ b/lib/util/utils.ts
|
|
@@ -37,7 +37,7 @@ export async function getZigbee2MQTTVersion(includeCommitHash = true): Promise<{
|
|
const version = packageJSON.version;
|
|
let commitHash: string | undefined;
|
|
|
|
- if (!includeCommitHash) {
|
|
+ if (true) { // XXX-Patched: don't use git
|
|
return {version, commitHash};
|
|
}
|
|
|
|
--- a/test/utils.test.ts
|
|
+++ b/test/utils.test.ts
|
|
@@ -18,7 +18,7 @@ describe("Utils", () => {
|
|
expect(utils.objectHasProperties({a: 1, b: 2, c: 3}, ["a", "b", "d"])).toBeFalsy();
|
|
});
|
|
|
|
- it("get Z2M version", async () => {
|
|
+ it.skip("get Z2M version", async () => {
|
|
const readFileSyncSpy = vi.spyOn(fs, "readFileSync");
|
|
const version = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8")).version;
|
|
|