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