Skip to content

Commit

Permalink
fix(order): prefer faker over a default generator value
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermorrisford committed Feb 12, 2024
1 parent ad3e19d commit 96fb3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/order/src/order-from-quote-draft/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const generator = Generator<TOrderFromQuoteDraft>({
fields: {
version: sequence(),
quote: fake(() => Reference.random().typeId('quote')),
quoteStateToAccepted: fake(() => false),
quoteStateToAccepted: fake((f) => f.datatype.boolean()),
orderNumber: fake((f) => String(f.number.int({ min: 100000 }))),
paymentState: oneOf(...Object.values(paymentState)),
shipmentState: oneOf(...Object.values(shipmentState)),
Expand Down

0 comments on commit 96fb3c3

Please sign in to comment.