Files
Alessandro ScandoneandGitHub 3a4eb3803f feat: improve testing tool (#93)
* 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
2025-10-02 16:29:35 +02:00

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"
}
]
}
]
}