functional initial version

This commit is contained in:
2025-10-30 16:19:38 +00:00
parent 0bcba44b1d
commit 7893dce549
10 changed files with 155 additions and 12 deletions

View File

@@ -1,10 +1,11 @@
import { expect, test } from "vitest";
import { expect, expectTypeOf, test } from "vitest";
import Updater from "../src/index.ts";
import * as types from "../src/types.ts";
test("get archive from gitea", async (): Promise<void> => {
const updater = new Updater("https://git.emaker.limited/MicrocontrollerCD/SoftwareRelease/releases");
const updater = new Updater("https://git.emaker.limited/MicrocontrollerCD/SoftwareRelease/releases", "atom");
const res = await updater.getArchive();
const text = res.text();
console.log(text);
expectTypeOf(res).toBeArray();
expectTypeOf(res[0]).toMatchObjectType<types.versionNotes>();
expect(res).not.toBe(null);
});