12 lines
510 B
TypeScript
12 lines
510 B
TypeScript
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", "atom");
|
|
const res = await updater.getArchive();
|
|
expectTypeOf(res).toBeArray();
|
|
expectTypeOf(res[0]).toMatchObjectType<types.versionNotes>();
|
|
expect(res).not.toBe(null);
|
|
});
|