mirror of
https://github.com/hanzo-fi/numscript.git
synced 2026-10-30 20:54:52 +00:00
* fix: update schemas * fix: update the schema of new specs file generator * fix: update specs $schema field to the new one
42 lines
862 B
JSON
42 lines
862 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
|
|
"testCases": [
|
|
{
|
|
"it": "is capped to USD100 when balance is higher",
|
|
"balances": [
|
|
{
|
|
"account": "src",
|
|
"asset": "USD",
|
|
"amount": 999
|
|
}
|
|
],
|
|
"expect.postings": [
|
|
{
|
|
"source": "src",
|
|
"destination": "dest",
|
|
"amount": 100,
|
|
"asset": "USD"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"it": "allows sending less than the cap when balance is not enough",
|
|
"balances": [
|
|
{
|
|
"account": "src",
|
|
"asset": "USD",
|
|
"amount": 42
|
|
}
|
|
],
|
|
"expect.postings": [
|
|
{
|
|
"source": "src",
|
|
"destination": "dest",
|
|
"amount": 42,
|
|
"asset": "USD"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|