Need to "tick" before asking transactions to libeufin.
This commit is contained in:
parent
812c7e7708
commit
1ca5677f8d
@ -27,6 +27,9 @@ import {
|
|||||||
findNexusPayment,
|
findNexusPayment,
|
||||||
} from "./libeufin";
|
} from "./libeufin";
|
||||||
|
|
||||||
|
// This test only checks that LibEuFin doesn't fail when
|
||||||
|
// it generates Camt statements - no assertions take place.
|
||||||
|
// Furthermore, it prints the Camt.053 being generated.
|
||||||
export async function runLibeufinApiSandboxCamtTest(t: GlobalTestState) {
|
export async function runLibeufinApiSandboxCamtTest(t: GlobalTestState) {
|
||||||
|
|
||||||
const sandbox = await LibeufinSandboxService.create(t, {
|
const sandbox = await LibeufinSandboxService.create(t, {
|
||||||
@ -53,7 +56,7 @@ export async function runLibeufinApiSandboxCamtTest(t: GlobalTestState) {
|
|||||||
await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1");
|
await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1");
|
||||||
await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1");
|
await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1");
|
||||||
await sandbox.makeTransaction("mock-account-1", "mock-account-0", "EUR:5", "minus 5");
|
await sandbox.makeTransaction("mock-account-1", "mock-account-0", "EUR:5", "minus 5");
|
||||||
|
await sandbox.c53tick();
|
||||||
let ret = await LibeufinSandboxApi.getCamt053(sandbox, "mock-account-1");
|
let ret = await LibeufinSandboxApi.getCamt053(sandbox, "mock-account-1");
|
||||||
console.log(ret);
|
console.log(ret);
|
||||||
}
|
}
|
||||||
|
@ -101,9 +101,8 @@ export async function runLibeufinTutorialTest(t: GlobalTestState) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
await libeufinCli.importBankAccount(bankAccountImportDetails);
|
await libeufinCli.importBankAccount(bankAccountImportDetails);
|
||||||
await libeufinCli.fetchTransactions(
|
await libeufinSandbox.c53tick()
|
||||||
bankAccountImportDetails.nexusBankAccountName,
|
await libeufinCli.fetchTransactions(bankAccountImportDetails.nexusBankAccountName);
|
||||||
);
|
|
||||||
await libeufinCli.transactions(bankAccountImportDetails.nexusBankAccountName);
|
await libeufinCli.transactions(bankAccountImportDetails.nexusBankAccountName);
|
||||||
|
|
||||||
const paymentDetails = {
|
const paymentDetails = {
|
||||||
|
Loading…
Reference in New Issue
Block a user