Skip to content

Commit

Permalink
Ignore testing console.log in dates.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JCake committed Feb 17, 2024
1 parent 2ea7060 commit 9fe1546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pizza-function/reports/mutation/mutation.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pizza-function/src/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function getCheckoutTime(distanceToTravel: number, sampleTime: string) {
);
const eventTime = new Date(sampleTime);
const exactPickupTime = addMinutes(eventTime, minutesToTravelDistance);
// Stryker disable next-line all
console.log("exact pickup time", exactPickupTime);
const topOfHour = startOfHour(exactPickupTime);
let pickupTime = topOfHour;
Expand All @@ -16,8 +17,10 @@ export function getCheckoutTime(distanceToTravel: number, sampleTime: string) {
pickupTime = challenge;
challenge = addMinutes(pickupTime, 15);
}
// Stryker disable next-line all
console.log("found actual time ", pickupTime);
const time = formatInTimeZone(pickupTime, "America/Chicago", "hh:mm aa");
// Stryker disable next-line all
console.log("time found: ", time);
return time;
}

0 comments on commit 9fe1546

Please sign in to comment.