From ca2720ac5d9b2176cecbc53805357ddcd7cd4063 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 --- __tests__/github.proxy.test.ts | 2 +- __tests__/github.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/github.proxy.test.ts b/__tests__/github.proxy.test.ts index 7811b8e..aa79f8b 100644 --- a/__tests__/github.proxy.test.ts +++ b/__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/__tests__/github.test.ts b/__tests__/github.test.ts index 6595c30..6a5b6be 100644 --- a/__tests__/github.test.ts +++ b/__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 ?? '') }) })