From 2a3ae96c364561d46427f078fdff5487ff6e3021 Mon Sep 17 00:00:00 2001 From: Matteo Pietro Dazzi Date: Thu, 17 Nov 2022 16:16:15 +0100 Subject: [PATCH] chore: nvmrc content to lts/* (#245) * chore: changed nvmrc file content * Update ci.yml * fix: string matching for node 18 --- .github/workflows/ci.yml | 1 + .nvmrc | 1 + test.js | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8c7a94..47f42a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ jobs: node: - 14 - 16 + - 18 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..1a2f5bd --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* \ No newline at end of file diff --git a/test.js b/test.js index 3b4d89f..3b10716 100644 --- a/test.js +++ b/test.js @@ -751,7 +751,9 @@ describe('RS256 JWT token validation', function () { code: 'ECONNREFUSED', statusCode: 500, error: 'Internal Server Error', - message: 'request to https://localhost/.well-known/jwks.json failed, reason: connect ECONNREFUSED 127.0.0.1:443' + message: expect.stringMatching( + /request to https:\/\/localhost\/.well-known\/jwks.json failed, reason: connect ECONNREFUSED (127.0.0.1|::1):443/ + ) }) })