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();
|
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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user