mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 12:58:11 +03:00
debugging donotrun
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import tap from "tap";
|
||||
import t from "tap";
|
||||
import { rootLogger } from "../logger";
|
||||
import { CloseAllConnections } from "./close-connections";
|
||||
import mockApi from "./mock-api";
|
||||
|
||||
type TestCB = Exclude<Parameters<typeof tap.test>[1], undefined>;
|
||||
type TestCB = Exclude<Parameters<typeof t.test>[1], undefined>;
|
||||
|
||||
type Test = Parameters<TestCB>[0];
|
||||
|
||||
export function RequireNeutralAuthentication(t: Test, url: string, method: "GET" | "POST" = "GET") {
|
||||
export function RequireNeutralAuthentication(url: string, method: "GET" | "POST" = "GET") {
|
||||
t.test(`Testing authentication for ${method} ${url}.`, async (t) => {
|
||||
let res;
|
||||
|
||||
@@ -21,5 +23,9 @@ export function RequireNeutralAuthentication(t: Test, url: string, method: "GET"
|
||||
"You are not authorised to perform this action.",
|
||||
"Should return an appropriate error message."
|
||||
);
|
||||
|
||||
// CloseAllConnections();
|
||||
|
||||
t.end();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user