Skip to content

Commit

Permalink
test: remove outdated test
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Nov 9, 2024
1 parent 4a414bf commit 487fd27
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions core/src/node/api/restful/helper/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,22 +220,6 @@ describe('builder helper functions', () => {
})

describe('chatCompletions', () => {
it('should return an error if model is not found', async () => {
const request = { body: { model: 'nonexistentModel' } }
const reply = { code: jest.fn().mockReturnThis(), send: jest.fn() }

await chatCompletions(request, reply)
expect(reply.code).toHaveBeenCalledWith(404)
expect(reply.send).toHaveBeenCalledWith({
error: {
message: 'The model nonexistentModel does not exist',
type: 'invalid_request_error',
param: null,
code: 'model_not_found',
},
})
})

it('should return the error on status not ok', async () => {
const request = { body: { model: 'model1' } }
const mockSend = jest.fn()
Expand Down

0 comments on commit 487fd27

Please sign in to comment.