SponsorBlockServer/test/utils.ts

10 lines
268 B
TypeScript
Raw Normal View History

2021-07-12 08:43:46 +02:00
import {config} from "../src/config";
2020-10-17 20:56:54 +02:00
2021-07-04 07:34:31 +02:00
export function getbaseURL(): string {
2021-07-12 08:43:46 +02:00
return `http://localhost:${config.port}`;
2020-10-17 20:56:54 +02:00
}
/**
* Duplicated from Mocha types. TypeScript doesn't infer that type by itself for some reason.
*/
export type Done = (err?: any) => void;