Skip to content

Commit

Permalink
Add mock for API client's asInternalUser endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomodarelli committed Oct 16, 2024
1 parent a3caa44 commit fa8bea5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/main/server/routes/wazuh-api-http-status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ const context = {
warn: jest.fn(),
error: jest.fn(),
},
api: {
client: {
asInternalUser: {
request: jest.fn().mockRejectedValue({
response: {},
}),
},
},
},
},
wazuh_core: {
manageHosts: {
Expand Down

0 comments on commit fa8bea5

Please sign in to comment.