We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2577513 commit 55413c3Copy full SHA for 55413c3
test/end-to-end/offer.js
@@ -707,6 +707,19 @@ describe("Offer endpoint tests", () => {
707
expect(res.status).toBe(HTTPStatus.UNPROCESSABLE_ENTITY);
708
});
709
710
+ test("should fail jobMinDuration isn't numeric value", async () => {
711
+ const offer_params = generateTestOffer({
712
+ jobMaxDuration: 8,
713
+ jobMinDuration: "nonNumeric",
714
+ owner: test_company._id,
715
+ });
716
+ const res = await request()
717
+ .post("/offers/new")
718
+ .send(withGodToken(offer_params));
719
+ expect(res.status).toBe(HTTPStatus.UNPROCESSABLE_ENTITY);
720
721
+
722
723
test("should succeed if jobMaxDuration is greater than jobMinDuration", async () => {
724
const offer_params = generateTestOffer({
725
jobMinDuration: 8,
0 commit comments