mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-27 12:50:47 +03:00
lint & fix tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import express from 'express';
|
||||
import {config} from '../src/config';
|
||||
import { Server } from 'http';
|
||||
|
||||
const app = express();
|
||||
|
||||
@@ -46,6 +47,6 @@ app.post('/CustomWebhook', (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
export function createMockServer(callback: () => void) {
|
||||
export function createMockServer(callback: () => void): Server {
|
||||
return app.listen(config.mockPort, callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user