Skip to content

Commit

Permalink
fix mock data for ShipmentView test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidbazzaz committed Jul 6, 2023
1 parent 3330d86 commit dad9214
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions react/src/mocks/shipments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ShipmentState, TransferAgreementType } from "types/generated/graphql";
import { base1, base2 } from "./bases";
import { generateMockBox } from "./boxes";
import { product1, product3 } from "./products";
import { size1, size2 } from "./sizeRanges";
import { user1 } from "./users";

export const shipment1 = {
Expand Down Expand Up @@ -96,6 +97,8 @@ export const generateMockShipment = ({
numberOfItems: 10,
product: product1,
}),
sourceSize: size1,
sourceQuantity: 10,
sourceProduct: product1,
targetProduct: null,
createdOn: "2023-01-09T17:24:29+00:00",
Expand All @@ -111,6 +114,8 @@ export const generateMockShipment = ({
numberOfItems: 10,
product: product1,
}),
sourceSize: size1,
sourceQuantity: 10,
sourceProduct: product1,
targetProduct: null,
createdOn: "2023-01-11T17:24:29+00:00",
Expand All @@ -126,6 +131,8 @@ export const generateMockShipment = ({
numberOfItems: 12,
product: product3,
}),
sourceSize: size2,
sourceQuantity: 12,
sourceProduct: product3,
targetProduct: null,
createdOn: "2023-02-01T17:24:29+00:00",
Expand Down

0 comments on commit dad9214

Please sign in to comment.