Skip to content

Commit

Permalink
Fix: change US-03 backend test to use day and time when closed.(#19)
Browse files Browse the repository at this point in the history
also added dotenv config call in knexfile
  • Loading branch information
gabrielsanchez authored Apr 12, 2021
1 parent e996dab commit ba32d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions back-end/knexfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* You will not need to make changes to this file.
*/

require('dotenv').config();
const path = require("path");

const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand All @@ -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")
Expand Down

0 comments on commit ba32d26

Please sign in to comment.