add tests

This commit is contained in:
2025-10-21 23:14:48 +01:00
parent c18f6d3ffe
commit 420927595d
3 changed files with 14 additions and 2 deletions

10
test/archive.test.ts Normal file
View File

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