mirror of
https://github.com/hanzoai/numscript.git
synced 2026-10-30 18:26:57 +00:00
* breaking: change assertion name * feat: add errMissingFunds assertion * breaking: renamed assertion * breaking: renamed assertions * feat: added expect.endBalances.include assertion * feat: better test output * fix * feat: added focus and skip * improve UI for focused/skipped tests * improve test ui
33 lines
803 B
JSON
33 lines
803 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/specs.schema.json",
|
|
"featureFlags": ["experimental-overdraft-function"],
|
|
"testCases": [
|
|
{
|
|
"it": "should not emit postings",
|
|
"balances": { "alice": { "EUR": 100 } },
|
|
"expect.postings": []
|
|
},
|
|
{
|
|
"it": "should send the missing amount to an overdraft account",
|
|
"balances": { "alice": { "EUR": -100 } },
|
|
"expect.endBalances": {
|
|
"alice": { "EUR": 0 },
|
|
"world": { "EUR": -100 }
|
|
},
|
|
"expect.movements": {
|
|
"world": {
|
|
"alice": { "EUR": 100 }
|
|
}
|
|
},
|
|
"expect.postings": [
|
|
{
|
|
"source": "world",
|
|
"destination": "alice",
|
|
"amount": 100,
|
|
"asset": "EUR"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|