mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix test
This commit is contained in:
parent
269003c25d
commit
0e4f678e2c
@ -1,14 +1,18 @@
|
||||
import { beforeAll, describe, expect, it } from "bun:test";
|
||||
import { createSerie, createVideo, getSerie } from "tests/helpers";
|
||||
import { createSerie, getSerie } from "tests/helpers";
|
||||
import { expectStatus } from "tests/utils";
|
||||
import { db } from "~/db";
|
||||
import { shows, videos } from "~/db/schema";
|
||||
import { madeInAbyss, madeInAbyssVideo } from "~/models/examples";
|
||||
|
||||
beforeAll(async () => {
|
||||
await createVideo(madeInAbyssVideo);
|
||||
await db.delete(videos);
|
||||
await db.delete(shows);
|
||||
await db.insert(videos).values(madeInAbyssVideo);
|
||||
await createSerie(madeInAbyss);
|
||||
});
|
||||
|
||||
describe("Get seasons", () => {
|
||||
describe("aet series", () => {
|
||||
it("Invalid slug", async () => {
|
||||
const [resp, body] = await getSerie("sotneuhn", { langs: "en" });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user