SponsorBlockServer/test/utils.ts

10 lines
268 B
TypeScript
Raw Normal View History

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