npm package diff
Package: @forge/sql
Versions: 2.2.0 - 2.2.1-next.0
File: package/out/__test__/sql.test.js
Index: package/out/__test__/sql.test.js
===================================================================
--- package/out/__test__/sql.test.js
+++ package/out/__test__/sql.test.js
@@ -94,9 +94,9 @@
const mockResponse = new node_fetch_1.Response(JSON.stringify(forgeError), {
status: 400
});
mockFetch.mockResolvedValue(mockResponse);
- await expect(sqlClient.storageApi('INVALID SQL QUERY')).rejects.toThrow(new errors_1.ForgeSQLAPIError(mockResponse, forgeError));
+ await expect(sqlClient.storageApi('INVALID SQL QUERY')).rejects.toThrow(new errors_1.ForgeSQLAPIError({ status: mockResponse.status, statusText: mockResponse.statusText }, forgeError));
});
});
describe('prepare', () => {
it('should return a SqlStatement instance with query', () => {