SponsorBlockServer/test/case_boilerplate.txt

22 lines
534 B
Text
Raw Normal View History

import { db } from "../../src/databases/databases";
import assert from "assert";
import { client } from "../utils/httpClient";
import { genUsers, User } from "../utils/genUser";
import { insertSegment, insertVip } from "../utils/queryGen";
const endpoint = "/api/endpoint";
const postTestEndpoint = () => client({
method: "POST",
url: endpoint,
data: {
}
});
const cases = [
"firstCase",
"secondCase",
"thirdCase"
];
const users = genUsers("endpoint", cases);
const vipUser = genUser("endpoint", "vip");