From 111c95866e428b35e5ecaa2ccefb20c712637817 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:10:18 +0000 Subject: [PATCH] fix test + update semver --- packages/cache/package-lock.json | 2 +- packages/cache/package.json | 2 +- packages/github/__tests__/github.proxy.test.ts | 4 ++-- packages/github/__tests__/github.test.ts | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cache/package-lock.json b/packages/cache/package-lock.json index 36e8ceba..31a81013 100644 --- a/packages/cache/package-lock.json +++ b/packages/cache/package-lock.json @@ -17,7 +17,7 @@ "@azure/abort-controller": "^1.1.0", "@azure/ms-rest-js": "^2.6.0", "@azure/storage-blob": "^12.13.0", - "semver": "^6.1.0", + "semver": "^6.3.1", "uuid": "^3.3.3" }, "devDependencies": { diff --git a/packages/cache/package.json b/packages/cache/package.json index 8a96cb19..b742c525 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -45,7 +45,7 @@ "@azure/abort-controller": "^1.1.0", "@azure/ms-rest-js": "^2.6.0", "@azure/storage-blob": "^12.13.0", - "semver": "^6.1.0", + "semver": "^6.3.1", "uuid": "^3.3.3" }, "devDependencies": { diff --git a/packages/github/__tests__/github.proxy.test.ts b/packages/github/__tests__/github.proxy.test.ts index aa79f8b7..e89966e8 100644 --- a/packages/github/__tests__/github.proxy.test.ts +++ b/packages/github/__tests__/github.proxy.test.ts @@ -17,7 +17,7 @@ describe('@actions/github', () => { beforeAll(async () => { // Start proxy server proxyServer = proxy() - await new Promise(resolve => { + await new Promise(resolve => { const port = Number(proxyUrl.split(':')[2]) proxyServer.listen(port, () => resolve()) }) @@ -32,7 +32,7 @@ describe('@actions/github', () => { afterAll(async () => { // Stop proxy server - await new Promise(resolve => { + await new Promise(resolve => { proxyServer.once('close', () => resolve()) proxyServer.close() }) diff --git a/packages/github/__tests__/github.test.ts b/packages/github/__tests__/github.test.ts index 6a5b6bed..1a68d58d 100644 --- a/packages/github/__tests__/github.test.ts +++ b/packages/github/__tests__/github.test.ts @@ -13,9 +13,9 @@ describe('@actions/github', () => { beforeAll(async () => { // Start proxy server proxyServer = proxy() - await new Promise(resolve => { + await new Promise(resolve => { const port = Number(proxyUrl.split(':')[2]) - proxyServer.listen(port, () => resolve(null)) + proxyServer.listen(port, () => resolve()) }) proxyServer.on('connect', req => { proxyConnects.push(req.url ?? '') @@ -29,8 +29,8 @@ describe('@actions/github', () => { afterAll(async () => { // Stop proxy server - await new Promise(resolve => { - proxyServer.once('close', () => resolve(null)) + await new Promise(resolve => { + proxyServer.once('close', () => resolve()) proxyServer.close() })