Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Dec 26, 2023
1 parent f11c6ef commit fb180fb
Showing 1 changed file with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,31 +102,29 @@ describe('getUpdates function', () => {
.mockImplementation(() => [{ id: 'api id' }]),
})),
},
services: {
wazuhApiClient: {
client: {
asInternalUser: {
request: jest.fn().mockImplementation(() => ({
api: {
client: {
asInternalUser: {
request: jest.fn().mockImplementation(() => ({
data: {
data: {
data: {
uuid: '7f828fd6-ef68-4656-b363-247b5861b84c',
current_version: '4.3.1',
last_available_patch: {
description:
'## Manager\r\n\r\n### Fixed\r\n\r\n- Fixed a crash when overwrite rules are triggered...',
published_date: '2022-05-18T10:12:43Z',
semver: {
major: 4,
minor: 3,
patch: 8,
},
tag: 'v4.3.8',
title: 'Wazuh v4.3.8',
uuid: '7f828fd6-ef68-4656-b363-247b5861b84c',
current_version: '4.3.1',
last_available_patch: {
description:
'## Manager\r\n\r\n### Fixed\r\n\r\n- Fixed a crash when overwrite rules are triggered...',
published_date: '2022-05-18T10:12:43Z',
semver: {
major: 4,
minor: 3,
patch: 8,
},
tag: 'v4.3.8',
title: 'Wazuh v4.3.8',
},
},
})),
},
},
})),
},
},
},
Expand Down

0 comments on commit fb180fb

Please sign in to comment.