Skip to content

Commit

Permalink
Fixed vacancies tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoRosendo authored and CiscoPr committed Feb 28, 2023
1 parent 3118704 commit 7ffcbf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/end-to-end/offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,7 @@ describe("Offer endpoint tests", () => {
description: "Ability to have an incredible job",
jobType: "OTHER",
location: "Aveiro",
vacancies: 2,
vacancies: 1,
ownerName: "Awesome Company",
});
});
Expand Down Expand Up @@ -2853,8 +2853,8 @@ describe("Offer endpoint tests", () => {

expect(res.status).toBe(HTTPStatus.OK);
expect(res.body?.results).toHaveLength(2);
expect(res.body.results[0].title).toBe(test_offer.title);
expect(res.body.results[1].title).toBe("Amazing offer");
expect(res.body.results[0].title).toBe("Amazing offer");
expect(res.body.results[1].title).toBe(test_offer.title);
});

test("should sort by vacancies descending", async () => {
Expand Down

0 comments on commit 7ffcbf5

Please sign in to comment.