Skip to content

Commit

Permalink
fix pricing un deterministic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Feb 20, 2024
1 parent bad41dd commit dd383c8
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,14 @@ describe("PricingModule Service - PriceSetMoneyAmountRules", () => {
},
])

const priceSetMoneyAmountRules =
await service.listPriceSetMoneyAmountRules(
{},
{
relations: ["price_set_money_amount", "rule_type"],
}
)

const created =
priceSetMoneyAmountRules[priceSetMoneyAmountRules.length - 1]
const [created] = await service.listPriceSetMoneyAmountRules(
{
value: ["New priceSetMoneyAmountRule"],
},
{
relations: ["price_set_money_amount", "rule_type"],
}
)

expect(created).toEqual(
expect.objectContaining({
Expand Down

0 comments on commit dd383c8

Please sign in to comment.