11 lines
397 B
TypeScript
11 lines
397 B
TypeScript
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);
|
|
});
|