Skip to content

Commit

Permalink
fixup! feat(storybook): Add storybook story for RoutePropertiesCard
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson committed May 20, 2024
1 parent 5a051e1 commit 5f7ae18
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,55 @@ import RoutePropertiesCard from "../../../src/components/mapPage/routeProperties
import { routePatternFactory } from "../../../tests/factories/routePattern"
import routeFactory from "../../../tests/factories/route"
import { RoutesProvider } from "../../../src/contexts/routesContext"
import stopFactory from "../../../tests/factories/stop"
import shapeFactory from "../../../tests/factories/shape"

const outboundStops = [
stopFactory.build({ name: "Watertown Square" }),
stopFactory.build({ name: "Centre St @ Beacon St" }),
stopFactory.build({ name: "Charles River Loop" }),
stopFactory.build({ name: "Dedham Mall" }),
]

const routePattern0 = routePatternFactory.build({
directionId: 0,
headsign: "Dedham Mall",
id: "52-5-0",
name: "Watertown - Dedham Mall via Meadowbrook Rd",
routeId: "52",
shape: shapeFactory.build({ stops: outboundStops }),
})
const routePattern1 = routePatternFactory.build({
directionId: 0,
headsign: "Charles River Loop",
id: "52-4-0",
name: "Watertown - Charles River Loop via Meadowbrook Rd",
routeId: "52",
shape: shapeFactory.build({ stops: outboundStops }),
})
const routePattern2 = routePatternFactory.build({
directionId: 1,
headsign: "Watertown Yard",
id: "52-5-1",
name: "Dedham Mall - Watertown via Meadowbrook Rd",
routeId: "52",
shape: shapeFactory.build({ stops: outboundStops.reverse() }),
})
const routePattern3 = routePatternFactory.build({
directionId: 1,
headsign: "Watertown Yard",
id: "52-4-1",
name: "Charles River Loop - Watertown via Meadowbrook Rd",
routeId: "52",
shape: shapeFactory.build({ stops: outboundStops.reverse() }),
})
const routePattern4 = routePatternFactory.build({
directionId: 1,
headsign: "Watertown Yard via Dedham St",
id: "52-6-1",
name: "Charles River Loop - Watertown via Dedham St",
routeId: "52",
shape: shapeFactory.build({ stops: outboundStops.reverse() }),
})
const routePatterns = {
[routePattern0.id]: routePattern0,
Expand Down

0 comments on commit 5f7ae18

Please sign in to comment.