feat: Add decimal digits and rounding info to currencies (#6991)
This commit is contained in:
1 parent
667c8609cc
commit
7302d078a9
9 files changed
+89
-49
No files matched your search
@@ -19,10 +19,12 @@ moduleIntegrationTestRunner({
|
||||
expect.objectContaining({
|
||||
code: "cad",
|
||||
name: "Canadian Dollar",
|
||||
decimal_digits: 2,
|
||||
}),
|
||||
expect.objectContaining({
|
||||
code: "usd",
|
||||
name: "US Dollar",
|
||||
decimal_digits: 2,
|
||||
}),
|
||||
])
|
||||
)
|
||||
@@ -116,7 +118,7 @@ moduleIntegrationTestRunner({
|
||||
{},
|
||||
{
|
||||
take: 1,
|
||||
select: ["code"],
|
||||
select: ["code", "rounding"],
|
||||
}
|
||||
)
|
||||
|
||||
@@ -126,6 +128,8 @@ moduleIntegrationTestRunner({
|
||||
expect(serialized).toEqual([
|
||||
{
|
||||
code: "aed",
|
||||
rounding: 0,
|
||||
raw_rounding: expect.any(Object),
|
||||
},
|
||||
])
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user