mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
a9ef3815e2
- getIsUserVIP - postClearCache - update boilerplate
22 lines
No EOL
534 B
Text
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"); |