rename update method and update return types

This commit is contained in:
2025-04-06 09:51:13 -07:00
parent 7e0c1f3539
commit 695fec1fce
10 changed files with 26 additions and 28 deletions

View File

@@ -35,7 +35,7 @@ describe("ApiBasedRepositoryLoader", () => {
// Arrange
const systemsToPrune = generateMockSystems();
await Promise.all(systemsToPrune.map(async (system) => {
await loader.repository.addOrUpdateSystem(system);
await loader.repository.updateSystem(system);
}));
const numberOfSystemsInResponse = fetchSystemDataSuccessfulResponse.all.length;
@@ -78,7 +78,7 @@ describe("ApiBasedRepositoryLoader", () => {
const systems = generateMockSystems();
await Promise.all(systems.map(async (system) => {
await loader.repository.addOrUpdateSystem(system);
await loader.repository.updateSystem(system);
}));
await loader.fetchAndUpdateRouteDataForExistingSystemsInRepository();
@@ -128,7 +128,7 @@ describe("ApiBasedRepositoryLoader", () => {
const systems = generateMockSystems();
await Promise.all(systems.map(async (system) => {
await loader.repository.addOrUpdateSystem(system);
await loader.repository.updateSystem(system);
}));
await loader.fetchAndUpdateStopAndPolylineDataForRoutesInExistingSystemsInRepository();
@@ -183,7 +183,7 @@ describe("ApiBasedRepositoryLoader", () => {
const systems = generateMockSystems();
await Promise.all(systems.map(async (system) => {
await loader.repository.addOrUpdateSystem(system);
await loader.repository.updateSystem(system);
}))
await loader.fetchAndUpdateShuttleDataForExistingSystemsInRepository();
@@ -226,7 +226,7 @@ describe("ApiBasedRepositoryLoader", () => {
const systems = generateMockSystems();
await Promise.all(systems.map(async (system) => {
await loader.repository.addOrUpdateSystem(system);
await loader.repository.updateSystem(system);
}));
await loader.fetchAndUpdateEtaDataForExistingStopsForSystemsInRepository();