Skip to content

Commit f920076

Browse files
committed
Minor adjusts
1 parent 5380321 commit f920076

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/downloader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ function downloadBinaryMock (url: string, filename: string): nock.Interceptor {
4040
return nock(url).get(`/bin/${path.basename(filename)}`);
4141
}
4242

43-
function defaultListener (req, res) {
43+
function defaultListener (req: any, res: any): void {
4444
res.writeHead(200);
4545
res.end('OK');
4646
};
4747

48-
async function startMockServer (listener = defaultListener) {
48+
async function startMockServer (listener = defaultListener): Promise<any> {
4949
const server = https.createServer({
5050
key: fs.readFileSync(path.resolve(assets, 'key.pem')),
5151
cert: fs.readFileSync(path.resolve(assets, 'cert.pem'))
@@ -97,7 +97,7 @@ tape('Download version list', async function (t) {
9797
});
9898
});
9999

100-
tape('Download latest binary', async function (t) {
100+
tape('Download binary', async function (t) {
101101
const server = await startMockServer();
102102
const content = '() => {}';
103103
const tmpDir = tmp.dirSync({ unsafeCleanup: true, prefix: 'solcjs-download-test-' }).name;

0 commit comments

Comments
 (0)