Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 22, 2024
1 parent fbda1fc commit e8655ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('deleteInferenceEndpoint', () => {
beforeEach(() => {
mockClient = {
inference: {
deleteModel: jest.fn(),
delete: jest.fn(),
},
};
});
Expand All @@ -24,7 +24,7 @@ describe('deleteInferenceEndpoint', () => {

await deleteInferenceEndpoint(mockClient, type, id);

expect(mockClient.inference.deleteModel).toHaveBeenCalledWith({
expect(mockClient.inference.delete).toHaveBeenCalledWith({
inference_id: id,
task_type: type,
});
Expand Down

0 comments on commit e8655ea

Please sign in to comment.