Skip to content

Commit

Permalink
add 2023 testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekVigas committed Feb 8, 2024
1 parent 6adcc7d commit 3d71014
Show file tree
Hide file tree
Showing 6 changed files with 402 additions and 0 deletions.
75 changes: 75 additions & 0 deletions __tests__/testCases/case202301Input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'

export const case202301Input: E2eTestUserInput = {
t1r10_prijmy: '11000',
priloha3_r11_socialne: '1200',
priloha3_r13_zdravotne: '650',
zaplatenePreddavky: '0',
r001_dic: '233123123',
r003_nace: '62010 - Počítačové programovanie',
r005_meno: 'Fake',
r004_priezvisko: 'Name',
r006_titul: 'Ing.',
r006_titul_za: 'PhD.',
r007_ulica: 'Mierova',
r008_cislo: '4',
r009_psc: '82105',
r010_obec: 'Bratislava 3',
r011_stat: 'Slovensko',
datum: '22.02.2024',

/** SECTION Employment */
uhrnPrijmovOdVsetkychZamestnavatelov: '0',
uhrnPovinnehoPoistnehoNaSocialnePoistenie: '0',
uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '0',
uhrnPreddavkovNaDan: '0',
udajeODanovomBonuseNaDieta: '0',
employed: false,

/** SECTION Pension */
platil_prispevky_na_dochodok: false,
zaplatene_prispevky_na_dochodok: '0',

/** SECTION Partner */
r031_priezvisko_a_meno: 'Fake Fake',
r031_rodne_cislo: '9609226286',
r032_partner_pocet_mesiacov: '12',
r032_partner_vlastne_prijmy: '3000',
r032_uplatnujem_na_partnera: false,
partner_spolocna_domacnost: true,
partner_bonus_uplatneny: false,
partner_podmienky: { '1': true },

/** SECTION Children */
children: [
{
id: 1,
priezviskoMeno: 'Morty Smith',
rodneCislo: '2107123634',
wholeYear: true,
monthFrom: '6',
monthTo: '11',
},
{
id: 2,
priezviskoMeno: 'Summer Smith',
rodneCislo: '236017/4729',
wholeYear: false,
monthFrom: '9',
monthTo: '11',
},
],
hasChildren: true,
partner_bonus_na_deti: true,
r034_priezvisko_a_meno: 'Beth Smith',
r034_rodne_cislo: '895103/4169',
partner_bonus_na_deti_od: '0',
partner_bonus_na_deti_do: '5',
r034a: '5000',

expectNgoDonationValue: false,

/** SECTION Two Percent */
percent2: '15,99',
percent3: '29,42',
}
75 changes: 75 additions & 0 deletions __tests__/testCases/case202302Input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'

export const case202302Input: E2eTestUserInput = {
t1r10_prijmy: '15450',
priloha3_r11_socialne: '1720.95',
priloha3_r13_zdravotne: '687.96',
zaplatenePreddavky: '0',
r001_dic: '233123123',
r003_nace: '62010 - Počítačové programovanie',
r005_meno: 'Fake',
r004_priezvisko: 'Name',
r006_titul: 'Ing.',
r006_titul_za: 'PhD.',
r007_ulica: 'Mierova',
r008_cislo: '4',
r009_psc: '82105',
r010_obec: 'Bratislava 3',
r011_stat: 'Slovensko',
datum: '22.02.2024',

/** SECTION Employment */
uhrnPrijmovOdVsetkychZamestnavatelov: '8400',
uhrnPovinnehoPoistnehoNaSocialnePoistenie: '789.60',
uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '336',
uhrnPreddavkovNaDan: '446.76',
udajeODanovomBonuseNaDieta: '0',
employed: true,

/** SECTION Pension */
platil_prispevky_na_dochodok: false,
zaplatene_prispevky_na_dochodok: '0',

/** SECTION Partner */
r032_uplatnujem_na_partnera: false,
r031_priezvisko_a_meno: 'Fake Fake',
r031_rodne_cislo: '9609226286',
r032_partner_pocet_mesiacov: '12',
r032_partner_vlastne_prijmy: '3000',
partner_spolocna_domacnost: true,
partner_bonus_uplatneny: false,
partner_podmienky: { '1': true },

/** SECTION Children */
children: [
{
id: 1,
priezviskoMeno: 'Morty Smith',
rodneCislo: '065603/6337',
wholeYear: true,
monthFrom: '6',
monthTo: '11',
},
{
id: 2,
priezviskoMeno: 'Summer Smith',
rodneCislo: '215928/6294',
wholeYear: true,
monthFrom: '9',
monthTo: '11',
},
],
hasChildren: true,
partner_bonus_na_deti: true,
r034_priezvisko_a_meno: 'Beth Smith',
r034_rodne_cislo: '895103/4169',
partner_bonus_na_deti_od: '0',
partner_bonus_na_deti_do: '5',
r034a: '5000',

expectNgoDonationValue: false,

/** SECTION Two Percent */
percent2: '15,99',
percent3: '29,42',
}
75 changes: 75 additions & 0 deletions __tests__/testCases/case202303Input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'

export const case202303Input: E2eTestUserInput = {
t1r10_prijmy: '15450',
priloha3_r11_socialne: '1720.95',
priloha3_r13_zdravotne: '687.96',
zaplatenePreddavky: '0',
r001_dic: '233123123',
r003_nace: '62010 - Počítačové programovanie',
r005_meno: 'Fake',
r004_priezvisko: 'Name',
r006_titul: 'Ing.',
r006_titul_za: 'PhD.',
r007_ulica: 'Mierova',
r008_cislo: '4',
r009_psc: '82105',
r010_obec: 'Bratislava 3',
r011_stat: 'Slovensko',
datum: '22.02.2024',

/** SECTION Employment */
uhrnPrijmovOdVsetkychZamestnavatelov: '14400',
uhrnPovinnehoPoistnehoNaSocialnePoistenie: '1353.60',
uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '576',
uhrnPreddavkovNaDan: '1434',
udajeODanovomBonuseNaDieta: '0',
employed: true,

/** SECTION Pension */
platil_prispevky_na_dochodok: false,
zaplatene_prispevky_na_dochodok: '0',

/** SECTION Partner */
r032_uplatnujem_na_partnera: false,
r031_priezvisko_a_meno: 'Fake Fake',
r031_rodne_cislo: '9609226286',
r032_partner_pocet_mesiacov: '12',
r032_partner_vlastne_prijmy: '3000',
partner_spolocna_domacnost: true,
partner_bonus_uplatneny: false,
partner_podmienky: { '1': true },

/** SECTION Children */
children: [
{
id: 1,
priezviskoMeno: 'Morty Smith',
rodneCislo: '040628/7156',
wholeYear: true,
monthFrom: '6',
monthTo: '11',
},
{
id: 2,
priezviskoMeno: 'Summer Smith',
rodneCislo: '210920/3514',
wholeYear: true,
monthFrom: '9',
monthTo: '11',
},
],
hasChildren: true,
partner_bonus_na_deti: false,
r034_priezvisko_a_meno: 'Beth Smith',
r034_rodne_cislo: '895103/4169',
partner_bonus_na_deti_od: '0',
partner_bonus_na_deti_do: '5',
r034a: '5000',

expectNgoDonationValue: false,

/** SECTION Two Percent */
percent2: '15,99',
percent3: '29,42',
}
75 changes: 75 additions & 0 deletions __tests__/testCases/case202304Input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'

export const case202304Input: E2eTestUserInput = {
t1r10_prijmy: '78000',
priloha3_r11_socialne: '2253.36',
priloha3_r13_zdravotne: '951.72',
zaplatenePreddavky: '0',
r001_dic: '233123123',
r003_nace: '62010 - Počítačové programovanie',
r005_meno: 'Fake',
r004_priezvisko: 'Name',
r006_titul: 'Ing.',
r006_titul_za: 'PhD.',
r007_ulica: 'Mierova',
r008_cislo: '4',
r009_psc: '82105',
r010_obec: 'Bratislava 3',
r011_stat: 'Slovensko',
datum: '22.02.2024',

/** SECTION Employment */
uhrnPrijmovOdVsetkychZamestnavatelov: '0',
uhrnPovinnehoPoistnehoNaSocialnePoistenie: '0',
uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '0',
uhrnPreddavkovNaDan: '0',
udajeODanovomBonuseNaDieta: '0',
employed: false,

/** SECTION Pension */
platil_prispevky_na_dochodok: false,
zaplatene_prispevky_na_dochodok: '0',

/** SECTION Partner */
r032_uplatnujem_na_partnera: false,
r031_priezvisko_a_meno: 'Fake Fake',
r031_rodne_cislo: '9609226286',
r032_partner_pocet_mesiacov: '12',
r032_partner_vlastne_prijmy: '3000',
partner_spolocna_domacnost: true,
partner_bonus_uplatneny: false,
partner_podmienky: { '1': true },

/** SECTION Children */
children: [
{
id: 1,
priezviskoMeno: 'Morty Smith',
rodneCislo: '040620/7252',
wholeYear: true,
monthFrom: '6',
monthTo: '11',
},
{
id: 2,
priezviskoMeno: 'Summer Smith',
rodneCislo: '230913/4916',
wholeYear: false,
monthFrom: '8',
monthTo: '11',
},
],
hasChildren: true,
partner_bonus_na_deti: false,
r034_priezvisko_a_meno: 'Beth Smith',
r034_rodne_cislo: '895103/4169',
partner_bonus_na_deti_od: '0',
partner_bonus_na_deti_do: '5',
r034a: '5000',

expectNgoDonationValue: true,

/** SECTION Two Percent */
percent2: '201,04',
percent3: '29,42',
}
91 changes: 91 additions & 0 deletions __tests__/testCases/case202305Input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'

export const case202305Input: E2eTestUserInput = {
t1r10_prijmy: '34800',
priloha3_r11_socialne: '2253.36',
priloha3_r13_zdravotne: '951.72',
zaplatenePreddavky: '0',
r001_dic: '233123123',
r003_nace: '62010 - Počítačové programovanie',
r005_meno: 'Fake',
r004_priezvisko: 'Name',
r006_titul: 'Ing.',
r006_titul_za: 'PhD.',
r007_ulica: 'Mierova',
r008_cislo: '4',
r009_psc: '82105',
r010_obec: 'Bratislava 3',
r011_stat: 'Slovensko',
datum: '22.02.2024',

/** SECTION Employment */
uhrnPrijmovOdVsetkychZamestnavatelov: '0',
uhrnPovinnehoPoistnehoNaSocialnePoistenie: '0',
uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '0',
uhrnPreddavkovNaDan: '0',
udajeODanovomBonuseNaDieta: '0',
employed: false,

/** SECTION Pension */
platil_prispevky_na_dochodok: false,
zaplatene_prispevky_na_dochodok: '0',

/** SECTION Partner */
r032_uplatnujem_na_partnera: false,
r031_priezvisko_a_meno: 'Fake Fake',
r031_rodne_cislo: '9609226286',
r032_partner_pocet_mesiacov: '12',
r032_partner_vlastne_prijmy: '3000',
partner_spolocna_domacnost: true,
partner_bonus_uplatneny: false,
partner_podmienky: { '1': true },

/** SECTION Children */
children: [
{
id: 1,
priezviskoMeno: 'Morty Smith',
rodneCislo: '1106247406',
wholeYear: true,
monthFrom: '6',
monthTo: '11',
},
{
id: 2,
priezviskoMeno: 'Summer Smith',
rodneCislo: '1106240146',
wholeYear: true,
monthFrom: `9`,
monthTo: '11',
},
{
id: 3,
priezviskoMeno: 'Rick Sanchez',
rodneCislo: '1106248473',
wholeYear: true,
monthFrom: `9`,
monthTo: '11',
},
{
id: 4,
priezviskoMeno: 'Beth Smith',
rodneCislo: '1106240740',
wholeYear: true,
monthFrom: `9`,
monthTo: '11',
},
],
hasChildren: true,
partner_bonus_na_deti: true,
r034_priezvisko_a_meno: 'Beth Smith',
r034_rodne_cislo: '895103/4169',
partner_bonus_na_deti_od: '0',
partner_bonus_na_deti_do: '3',
r034a: '13569',

expectNgoDonationValue: false,

/** SECTION Two Percent */
percent2: '201,04',
percent3: '29,42',
}
Loading

0 comments on commit 3d71014

Please sign in to comment.