add to-do for cleanup

This commit is contained in:
2025-01-07 21:06:29 -08:00
parent 01c4afc4f4
commit c869091fff

View File

@@ -5,7 +5,6 @@ import {
ApiBasedRepositoryMillisecondTTLs ApiBasedRepositoryMillisecondTTLs
} from "../../src/repositories/ApiBasedRepository"; } from "../../src/repositories/ApiBasedRepository";
import { IEta } from "../../src/entities/entities"; import { IEta } from "../../src/entities/entities";
import * as repl from "node:repl";
/** /**
* Update the global fetch function to return a specific object. * Update the global fetch function to return a specific object.
@@ -552,6 +551,7 @@ describe("getShuttlesBySystemId", () => {
test("getShuttlesBySystemId returns fresh data if expired", async () => { test("getShuttlesBySystemId returns fresh data if expired", async () => {
updateGlobalFetchMockJson(genericShuttleDataBySystemId); updateGlobalFetchMockJson(genericShuttleDataBySystemId);
// TODO: move construction of shuttle into method
const initialCacheShuttle = { const initialCacheShuttle = {
coordinates: { coordinates: {
latitude: 33.791781, latitude: 33.791781,