fix: test fix for fetch package and publish version with improved error logging
This commit is contained in:
parent
961712353b
commit
87d55c5b4d
3 changed files with 4 additions and 4 deletions
4
packages/fetch/package-lock.json
generated
4
packages/fetch/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@continuedev/fetch",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@continuedev/fetch",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.5",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@continuedev/fetch",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ describe("parseDataLine", () => {
|
|||
test("parseDataLine should throw error when data contains error field", () => {
|
||||
const line = 'data: {"error":"something went wrong"}';
|
||||
expect(() => parseDataLine(line)).toThrow(
|
||||
"Error streaming response: something went wrong",
|
||||
'Error streaming response: "something went wrong"',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue