From 568e8014c52e5d2e875b6743856368141e042293 Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Tue, 17 Dec 2024 12:14:41 -0300 Subject: [PATCH] fix(get-updates): enhance test descriptions for clarity in update availability cases and error handling scenarios --- .../server/services/updates/get-updates.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wazuh-check-updates/server/services/updates/get-updates.test.ts b/plugins/wazuh-check-updates/server/services/updates/get-updates.test.ts index ecdc932c86..a44cc16f61 100644 --- a/plugins/wazuh-check-updates/server/services/updates/get-updates.test.ts +++ b/plugins/wazuh-check-updates/server/services/updates/get-updates.test.ts @@ -93,7 +93,7 @@ describe('getUpdates function', () => { expect(updates).toEqual(savedObject); }); - it('should return available updates from api', async () => { + it('should return available updates from api when both requests succeed', async () => { const semver = { major: 4, minor: 3, @@ -204,7 +204,7 @@ describe('getUpdates function', () => { ], }); }); - it('should return updates when api version undefined first request and second request fails', async () => { + it('should return updates when api version undefined on first request and second request fails', async () => { const semver = { major: 4, minor: 3,