diff --git a/back-end/knexfile.js b/back-end/knexfile.js index eeb8157a83..4a117bfa35 100644 --- a/back-end/knexfile.js +++ b/back-end/knexfile.js @@ -4,6 +4,7 @@ * You will not need to make changes to this file. */ +require('dotenv').config(); const path = require("path"); const { diff --git a/back-end/test/us-03-create-reservations-eligible-timeframe.test.js b/back-end/test/us-03-create-reservations-eligible-timeframe.test.js index 66b11f3bcc..dd889f522c 100644 --- a/back-end/test/us-03-create-reservations-eligible-timeframe.test.js +++ b/back-end/test/us-03-create-reservations-eligible-timeframe.test.js @@ -25,7 +25,7 @@ describe("US-03 - Create reservations eligible timeframe", () => { first_name: "first", last_name: "last", mobile_number: "800-555-1212", - reservation_date: "2050-01-04", + reservation_date: "2050-01-05", reservation_time: "09:30", people: 3, }; @@ -50,7 +50,7 @@ describe("US-03 - Create reservations eligible timeframe", () => { .send({ data }); expect(response.status).toBe(400); - data.reservation_time = "15:30"; + data.reservation_time = "05:30"; response = await request(app) .post("/reservations") .set("Accept", "application/json")