Skip to content

Commit

Permalink
rm more unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Jun 26, 2024
1 parent 9f2a106 commit 866f27f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/utils/bibUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ITEM_BATCH_SIZE, RESULTS_PER_PAGE } from "../config/constants"
import { ITEM_BATCH_SIZE } from "../config/constants"
import type { BibQueryParams } from "../types/bibTypes"
import { getPaginationOffsetStrings } from "./appUtils"

Expand Down
36 changes: 18 additions & 18 deletions src/utils/utilsTests/pickupTimeEstimator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,25 +291,25 @@ describe("pickupTimeEstimator", () => {
})
})

// Each of these times is afterhours
;[
// 7pm closing:
"2023-06-01T19:00:09-04:00",
// 8pm:
"2023-06-01T20:00:00-04:00",
// 2am:
"2023-06-02T02:00:00-04:00",
].forEach(async (timestamp) => {
it(`should return tomorrow when called after service hours (${timestamp})`, async () => {
mockNowTimestamp = timestamp
expect(await estimator.getNextServiceHours("sc")).toEqual({
day: "Friday",
startTime: "2023-06-02T14:00:00.000Z",
endTime: "2023-06-02T22:00:00.000Z",
nextDeliverableDay: true,
// Each of these times is afterhours
;[
// 7pm closing:
"2023-06-01T19:00:09-04:00",
// 8pm:
"2023-06-01T20:00:00-04:00",
// 2am:
"2023-06-02T02:00:00-04:00",
].forEach(async (timestamp) => {
it(`should return tomorrow when called after service hours (${timestamp})`, async () => {
mockNowTimestamp = timestamp
expect(await estimator.getNextServiceHours("sc")).toEqual({
day: "Friday",
startTime: "2023-06-02T14:00:00.000Z",
endTime: "2023-06-02T22:00:00.000Z",
nextDeliverableDay: true,
})
})
})
})
})

describe("getServiceTime", () => {
Expand Down Expand Up @@ -515,7 +515,7 @@ describe("pickupTimeEstimator", () => {
it("should only make one get request for successive calls", async () => {
await estimator.operatingHours("sc")
await estimator.operatingHours("sc")
const hours = await estimator.operatingHours("sc")
// const hours = await estimator.operatingHours("sc")
// expect(sinon.assert.calledOnce(clientStub))
// expect(hours).toEqual(hoursArray.sc)
})
Expand Down

0 comments on commit 866f27f

Please sign in to comment.