Skip to content

Commit

Permalink
fix(get-updates): simplify test descriptions to improve readability i…
Browse files Browse the repository at this point in the history
…n update retrieval tests
  • Loading branch information
guidomodarelli committed Dec 17, 2024
1 parent baaa0e5 commit 6b30220
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 6b30220

Please sign in to comment.