From 7ffcbf5c34ed6200e2f7553dc9f5926c638fab53 Mon Sep 17 00:00:00 2001 From: Bruno Rosendo Date: Mon, 27 Feb 2023 22:59:51 +0000 Subject: [PATCH] Fixed vacancies tests --- test/end-to-end/offer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/end-to-end/offer.js b/test/end-to-end/offer.js index 193f451b..d79cfe6b 100644 --- a/test/end-to-end/offer.js +++ b/test/end-to-end/offer.js @@ -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", }); }); @@ -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 () => {