add previous balance to unit tests

This commit is contained in:
Moriz Wahl 2023-04-03 15:10:01 +02:00
parent 545e556599
commit 166debcc7d
4 changed files with 13 additions and 5 deletions

View File

@ -93,8 +93,9 @@ describe('GddTransactionList', () => {
{ {
id: -1, id: -1,
typeId: 'DECAY', typeId: 'DECAY',
amount: '-0.16778637075575395772595', amount: '-0.16',
balance: '31.59320453982945549519405', balance: '31.59',
previousBalance: '31.75',
balanceDate: '2022-03-03T08:54:54', balanceDate: '2022-03-03T08:54:54',
memo: '', memo: '',
linkedUser: null, linkedUser: null,
@ -110,6 +111,7 @@ describe('GddTransactionList', () => {
typeId: 'SEND', typeId: 'SEND',
amount: '1', amount: '1',
balance: '31.76099091058520945292', balance: '31.76099091058520945292',
previousBalance: '30.76',
balanceDate: '2022-02-28T13:55:47', balanceDate: '2022-02-28T13:55:47',
memo: memo:
'Um den Kessel schlingt den Reihn, Werft die Eingeweid hinein. Kröte du, die Nacht und Tag Unterm kalten Steine lag,', 'Um den Kessel schlingt den Reihn, Werft die Eingeweid hinein. Kröte du, die Nacht und Tag Unterm kalten Steine lag,',
@ -129,6 +131,7 @@ describe('GddTransactionList', () => {
typeId: 'RECEIVE', typeId: 'RECEIVE',
amount: '10', amount: '10',
balance: '10', balance: '10',
previousBalance: '31.75',
balanceDate: '2022-02-23T10:55:30', balanceDate: '2022-02-23T10:55:30',
memo: memo:
'Monatlanges Gift sog ein, In den Topf zuerst hinein… (William Shakespeare, Die Hexen aus Macbeth)', 'Monatlanges Gift sog ein, In den Topf zuerst hinein… (William Shakespeare, Die Hexen aus Macbeth)',
@ -148,6 +151,7 @@ describe('GddTransactionList', () => {
typeId: 'CREATION', typeId: 'CREATION',
amount: '1000', amount: '1000',
balance: '32.96482231613347376132', balance: '32.96482231613347376132',
previousBalance: '31.75',
balanceDate: '2022-02-25T07:29:26', balanceDate: '2022-02-25T07:29:26',
memo: 'Jammern hilft nichts, sondern ich kann selber meinen Teil dazu beitragen.', memo: 'Jammern hilft nichts, sondern ich kann selber meinen Teil dazu beitragen.',
linkedUser: { linkedUser: {
@ -414,6 +418,7 @@ describe('GddTransactionList', () => {
return { return {
amount: '3.14', amount: '3.14',
balanceDate: '2021-04-29T17:26:40+00:00', balanceDate: '2021-04-29T17:26:40+00:00',
previousBalance: '31.75',
decay: { decay: {
decay: '-477.01', decay: '-477.01',
start: '2021-05-13T17:46:31.000Z', start: '2021-05-13T17:46:31.000Z',

View File

@ -13,7 +13,8 @@ const mocks = {
const propsData = { const propsData = {
amount: '12.45', amount: '12.45',
balance: '31.76099091058521', balance: '31.76',
previousBalance: '19.31',
balanceDate: '2022-02-28T13:55:47.000Z', balanceDate: '2022-02-28T13:55:47.000Z',
decay: { decay: {
decay: '-0.2038314055482643084', decay: '-0.2038314055482643084',

View File

@ -13,7 +13,8 @@ const mocks = {
const propsData = { const propsData = {
amount: '12.45', amount: '12.45',
balance: '31.76099091058521', balance: '31.76',
previousBalance: '19.31',
balanceDate: '2022-02-28T13:55:47.000Z', balanceDate: '2022-02-28T13:55:47.000Z',
decay: { decay: {
decay: '-0.2038314055482643084', decay: '-0.2038314055482643084',

View File

@ -13,7 +13,8 @@ const mocks = {
const propsData = { const propsData = {
amount: '12.45', amount: '12.45',
balance: '31.76099091058521', balance: '31.76',
previousBalance: '19.31',
balanceDate: '2022-02-28T13:55:47.000Z', balanceDate: '2022-02-28T13:55:47.000Z',
decay: { decay: {
decay: '-0.2038314055482643084', decay: '-0.2038314055482643084',