Refactor swagger configuration and update productNatural.swagger.js #51
Annotations
3 errors and 2 warnings
coverage
Process completed with exit code 1.
|
src/service/ai/ai.service.test.js > aiService > should return an error if the function does not exist:
src/service/ai/ai.service.test.js#L85
AssertionError: expected { content: null, …(1) } to deeply equal { message: 'Function not found', …(2) }
- Expected
+ Received
Object {
- "message": "Function not found",
- "status": "error",
- "statusCode": 404,
+ "content": null,
+ "tool_calls": Array [
+ Object {
+ "function": Object {
+ "arguments": "{\"param1\":\"value1\"}",
+ "name": "nonExistentFunction",
+ },
+ "id": "1",
+ },
+ ],
}
❯ src/service/ai/ai.service.test.js:85:22
|
src/service/ai/ai.service.test.js > aiService > should return an error if the function does not exist:
src/service/ai/ai.service.test.js#L85
AssertionError: expected { content: null, …(1) } to deeply equal { message: 'Function not found', …(2) }
- Expected
+ Received
Object {
- "message": "Function not found",
- "status": "error",
- "statusCode": 404,
+ "content": null,
+ "tool_calls": Array [
+ Object {
+ "function": Object {
+ "arguments": "{\"param1\":\"value1\"}",
+ "name": "nonExistentFunction",
+ },
+ "id": "1",
+ },
+ ],
}
❯ src/service/ai/ai.service.test.js:85:22
|
coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|