mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update tests to correctly test internal system ID and passio ID
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user