Skip to content

Commit

Permalink
fix(get-updates): enhance test descriptions for clarity in update ava…
Browse files Browse the repository at this point in the history
…ilability cases and error handling scenarios
  • Loading branch information
guidomodarelli committed Dec 17, 2024
1 parent 6b30220 commit 568e801
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 568e801

Please sign in to comment.