diff --git a/.travis.yml b/.travis.yml index 63fb87c06..b6fd129af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,9 @@ language: node_js dist: jammy node_js: -- 14 - 16 - 18 +- 20 cache: npm: false diff --git a/README.md b/README.md index 9076d4660..bdc9113c5 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ This project contains core functionality required by Node.js code generated by t ## Prerequisites - Node.js version 14 or newer +- Note that v14 is technically *supported* but not officially *guaranteed* as we only test on v16 and higher ## Usage This package exports a single object containing a number of modules as top level properties. diff --git a/test/unit/request-wrapper.test.js b/test/unit/request-wrapper.test.js index e074786f3..29b41b0bc 100644 --- a/test/unit/request-wrapper.test.js +++ b/test/unit/request-wrapper.test.js @@ -707,7 +707,7 @@ describe('sendRequest', () => { mockAxiosInstance.mockResolvedValue(axiosResolveValue); await expect(requestWrapperInstance.sendRequest(parameters)).rejects.toThrow( - 'Error processing HTTP response: SyntaxError: Unexpected end of JSON input' + 'Error processing HTTP response: SyntaxError' ); expect(verboseLogSpy).toHaveBeenCalledTimes(2); expect(verboseLogSpy.mock.calls[0][0]).toBe( @@ -969,7 +969,7 @@ describe('formatError', () => { expect(() => { requestWrapperInstance.formatError(newAxiosError); - }).toThrow('Error processing HTTP response: SyntaxError: Unexpected end of JSON input'); + }).toThrow('Error processing HTTP response: SyntaxError'); expect(verboseLogSpy).toHaveBeenCalledTimes(2); expect(verboseLogSpy.mock.calls[0][0]).toBe( 'Response body was supposed to have JSON content but JSON parsing failed.'