mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add to-do for cleanup
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user