import { expect, expectTypeOf, test } from "vitest"; import Updater from "../src/index.ts"; test("get an atom feed from gitea", async (): Promise => { const updater = new Updater("https://git.emaker.limited/MicrocontrollerCD/SoftwareRelease/releases", "atom"); const res = await updater.getArchive(); expect(res).not.toBe(null); expect(res.length).toBeGreaterThan(0); }); test("get an rss feed from gitea", async(): Promise => { const updater = new Updater("https://git.emaker.limited/MicrocontrollerCD/SoftwareRelease/releases", "rss"); const res = await updater.getArchive(); expect(res).not.toBe(null); expect(res.length).toBeGreaterThan(0); }); test("get an atom feed from github", async (): Promise => { const updater = new Updater("https://github.com/chopster44/Phaser_3_pong/releases", "atom"); const res = await updater.getArchive(); expect(res).not.toBe(null); expect(res.length).toBeGreaterThan(0); });