fix(utils): bignumber util considers nullable options when setting value (#6499)
what: - when setting null for nullable columns, big number utils should not throw error - remove circular soft delete depenedencies for cart module - trims zeros on big number values
This commit is contained in:
1 parent
56cbf88115
commit
8ea37d03c9
10 files changed
+106
-45
No files matched your search
@@ -1,15 +1,15 @@
|
||||
import { IPaymentModuleService } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/modules-sdk"
|
||||
import { IPaymentModuleService } from "@medusajs/types"
|
||||
|
||||
import {
|
||||
moduleIntegrationTestRunner,
|
||||
SuiteOptions,
|
||||
} from "medusa-test-utils/dist"
|
||||
import {
|
||||
createPaymentCollections,
|
||||
createPayments,
|
||||
createPaymentSessions,
|
||||
} from "../../../__fixtures__"
|
||||
import {
|
||||
moduleIntegrationTestRunner,
|
||||
SuiteOptions,
|
||||
} from "medusa-test-utils/dist"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
@@ -466,7 +466,7 @@ moduleIntegrationTestRunner({
|
||||
id: expect.any(String),
|
||||
currency_code: "usd",
|
||||
amount: 100,
|
||||
raw_amount: { value: "100.00000000000000000", precision: 20 },
|
||||
raw_amount: { value: "100", precision: 20 },
|
||||
provider_id: "system",
|
||||
data: {},
|
||||
status: "authorized",
|
||||
|
||||
Reference in new issue
Block a user