From 6b18932b86ba4a5acfbba943dcca32cf29247ba4 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl Date: Wed, 14 Dec 2022 01:28:46 +0100 Subject: [PATCH] Fix missing typescript casts --- packages/github/__tests__/github.proxy.test.ts | 2 +- packages/github/__tests__/github.test.ts | 2 +- packages/http-client/__tests__/proxy.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/github/__tests__/github.proxy.test.ts b/packages/github/__tests__/github.proxy.test.ts index 7811b8eb..aa79f8b7 100644 --- a/packages/github/__tests__/github.proxy.test.ts +++ b/packages/github/__tests__/github.proxy.test.ts @@ -22,7 +22,7 @@ describe('@actions/github', () => { proxyServer.listen(port, () => resolve()) }) proxyServer.on('connect', req => { - proxyConnects.push(req.url) + proxyConnects.push(req.url ?? '') }) }) diff --git a/packages/github/__tests__/github.test.ts b/packages/github/__tests__/github.test.ts index 6595c304..6a5b6bed 100644 --- a/packages/github/__tests__/github.test.ts +++ b/packages/github/__tests__/github.test.ts @@ -18,7 +18,7 @@ describe('@actions/github', () => { proxyServer.listen(port, () => resolve(null)) }) proxyServer.on('connect', req => { - proxyConnects.push(req.url) + proxyConnects.push(req.url ?? '') }) }) diff --git a/packages/http-client/__tests__/proxy.test.ts b/packages/http-client/__tests__/proxy.test.ts index 62e8e962..4c627f3d 100644 --- a/packages/http-client/__tests__/proxy.test.ts +++ b/packages/http-client/__tests__/proxy.test.ts @@ -19,7 +19,7 @@ describe('proxy', () => { _proxyServer.listen(port, () => resolve()) }) _proxyServer.on('connect', req => { - _proxyConnects.push(req.url) + _proxyConnects.push(req.url ?? '') }) })