From 6b30220760b8a46c766d968732aae929622579da Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Tue, 17 Dec 2024 12:13:49 -0300 Subject: [PATCH] fix(get-updates): simplify test descriptions to improve readability in update retrieval tests --- .../server/services/updates/get-updates.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 674a121c32..ecdc932c86 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 @@ -149,7 +149,7 @@ describe('getUpdates function', () => { }); }); - it('should return available updates from api when in the first request, api_version is undefined', async () => { + it('should return updates when api version undefined on first request', async () => { const semver = { major: 4, minor: 3, @@ -204,7 +204,7 @@ describe('getUpdates function', () => { ], }); }); - it('should return available updates from api when in the first request, api_version is undefined and the second request fail', async () => { + it('should return updates when api version undefined first request and second request fails', async () => { const semver = { major: 4, minor: 3, @@ -240,7 +240,7 @@ describe('getUpdates function', () => { ], }); }); - it('should return available updates from api when the first request fail', async () => { + it('should return updates when first request fails', async () => { const semver = { major: 4, minor: 3, @@ -291,7 +291,7 @@ describe('getUpdates function', () => { ], }); }); - it('should return available updates from api when the second request fail', async () => { + it('should return updates when second request fails', async () => { const semver = { major: 4, minor: 3, @@ -327,7 +327,7 @@ describe('getUpdates function', () => { ], }); }); - it('should return error from api when both requests fail', async () => { + it('should return error when both requests fail', async () => { mockRequest .mockImplementationOnce(() => { throw new Error('Error');