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
58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
|
|
"featureFlags": [
|
|
"experimental-overdraft-function"
|
|
],
|
|
"testCases": [
|
|
{
|
|
"it": "should not emit postings",
|
|
"balances": [
|
|
{
|
|
"account": "alice",
|
|
"asset": "EUR",
|
|
"amount": 100
|
|
}
|
|
],
|
|
"expect.postings": []
|
|
},
|
|
{
|
|
"it": "should send the missing amount to an overdraft account",
|
|
"balances": [
|
|
{
|
|
"account": "alice",
|
|
"asset": "EUR",
|
|
"amount": -100
|
|
}
|
|
],
|
|
"expect.endBalances": [
|
|
{
|
|
"account": "alice",
|
|
"asset": "EUR",
|
|
"amount": 0
|
|
},
|
|
{
|
|
"account": "world",
|
|
"asset": "EUR",
|
|
"amount": -100
|
|
}
|
|
],
|
|
"expect.movements": [
|
|
{
|
|
"source": "world",
|
|
"destination": "alice",
|
|
"asset": "EUR",
|
|
"amount": 100
|
|
}
|
|
],
|
|
"expect.postings": [
|
|
{
|
|
"source": "world",
|
|
"destination": "alice",
|
|
"amount": 100,
|
|
"asset": "EUR"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|