Skip to content

Commit

Permalink
refactor: Explicitly export shapeDataFactory (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson authored Aug 28, 2024
1 parent 5fad372 commit bd7b7cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/tests/factories/shape_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Factory } from "fishery"
import { ShapeData } from "../../src/models/shapeData"
import { stopDataFactory } from "./stopData"

export default Factory.define<ShapeData>(({ sequence }) => ({
export const shapeDataFactory = Factory.define<ShapeData>(({ sequence }) => ({
id: `shape${sequence}`,
points: [{ shape_id: `shape${sequence}`, sequence: 1, lat: 0, lon: 0 }],
stops: [stopDataFactory.build({ id: `stop${sequence}` })],
Expand Down
2 changes: 1 addition & 1 deletion assets/tests/models/shapeData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
shapeFromData,
shapesFromData,
} from "../../src/models/shapeData"
import shapeDataFactory from "../factories/shape_data"
import { shapeDataFactory } from "../factories/shape_data"
import shapeFactory from "../factories/shape"
import { stopDataFactory } from "../factories/stopData"
import { stopsFromData } from "../../src/models/stopData"
Expand Down

0 comments on commit bd7b7cd

Please sign in to comment.