diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 852759b..9946c8e 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - node: [14, 16, 18] + node: [16, 18, 20, 22] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - uses: actions/checkout@v3 @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - node: [14, 16, 18] + node: [16, 18, 20 ,22] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - uses: actions/checkout@v3 diff --git a/test/tinify-client-test.js b/test/tinify-client-test.js index a0a17a9..2826767 100644 --- a/test/tinify-client-test.js +++ b/test/tinify-client-test.js @@ -234,7 +234,7 @@ describe("Client", function() { it("should pass error with message", function() { if (semver.gte(process.versions.node, "6.0.0")) { - assert.equal(error.message, "Error while parsing response: Unexpected token < in JSON at position 0 (HTTP 543/ParseError)") + assert.include(error.message, "(HTTP 543/ParseError)") } else { assert.equal(error.message, "Error while parsing response: Unexpected token < (HTTP 543/ParseError)") }