update tests to correctly test internal system ID and passio ID

This commit is contained in:
2025-04-07 13:47:50 -07:00
parent fe6db035f1
commit 8e3765abfb

View File

@@ -28,8 +28,8 @@ describe("ApiBasedRepositoryLoader", () => {
resetGlobalFetchMockJson();
});
const systemId = "1";
describe("fetchAndUpdateRouteDataForSystem", () => {
const systemId = "263";
it("updates route data in repository if response received", async () => {
// Arrange
// Test pruning
@@ -63,7 +63,6 @@ describe("ApiBasedRepositoryLoader", () => {
});
describe("fetchAndUpdateStopAndPolylineDataForRoutesWithSystemId", () => {
const systemId = "263";
it("updates stop and polyline data if response received", async () => {
// Arrange
// Test pruning of stops only
@@ -103,7 +102,6 @@ describe("ApiBasedRepositoryLoader", () => {
});
describe("fetchAndUpdateShuttleDataForSystem", () => {
const systemId = "263";
it("updates shuttle data in repository if response received", async () => {
const shuttlesToPrune = generateMockShuttles();
await Promise.all(shuttlesToPrune.map(async (shuttle) => {