SponsorBlockServer/test/case_boilerplate.txt
Michael C a9ef3815e2
add segment generator
- getIsUserVIP
- postClearCache
- update boilerplate
2023-09-27 22:21:42 -04:00

22 lines
No EOL
534 B
Text

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");