1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-10 13:55:03 +00:00

test(indépendant): ajoute des tests sur des années incomplètes

This commit is contained in:
Jalil Arfaoui 2025-01-20 18:22:08 +01:00
parent 422b2859db
commit c08b9a290d
4 changed files with 174 additions and 6 deletions

View file

@ -1,5 +1,77 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`calculate simulations-indépendant > Année incomplète 1`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: undefined
dirigeant . rémunération . cotisations: undefined
dirigeant . rémunération . net: undefined
dirigeant . rémunération . net . après impôt: undefined
dirigeant . rémunération . totale: undefined
entreprise . charges: 0
entreprise . chiffre d'affaires: undefined
impôt . montant: undefined"
`;
exports[`calculate simulations-indépendant > Année incomplète 2`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: 2097
dirigeant . rémunération . cotisations: 1703
dirigeant . rémunération . net: 2000
dirigeant . rémunération . net . après impôt: 2000
dirigeant . rémunération . totale: 3703
entreprise . charges: 0
entreprise . chiffre d'affaires: 3703
impôt . montant: 0"
`;
exports[`calculate simulations-indépendant > Année incomplète 3`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: 5193
dirigeant . rémunération . cotisations: 2242
dirigeant . rémunération . net: 5000
dirigeant . rémunération . net . après impôt: 5000
dirigeant . rémunération . totale: 7242
entreprise . charges: 0
entreprise . chiffre d'affaires: 7242
impôt . montant: 0"
`;
exports[`calculate simulations-indépendant > Année incomplète 4`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: 10382
dirigeant . rémunération . cotisations: 4195
dirigeant . rémunération . net: 10000
dirigeant . rémunération . net . après impôt: 10000
dirigeant . rémunération . totale: 14195
entreprise . charges: 0
entreprise . chiffre d'affaires: 14195
impôt . montant: 0"
`;
exports[`calculate simulations-indépendant > Année incomplète 5`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: 103803
dirigeant . rémunération . cotisations: 40189
dirigeant . rémunération . net: 100000
dirigeant . rémunération . net . après impôt: 73212
dirigeant . rémunération . totale: 140189
entreprise . charges: 0
entreprise . chiffre d'affaires: 140189
impôt . montant: 26788"
`;
exports[`calculate simulations-indépendant > Année incomplète 6`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: 1033726
dirigeant . rémunération . cotisations: 242158
dirigeant . rémunération . net: 1000000
dirigeant . rémunération . net . après impôt: 528830
dirigeant . rémunération . totale: 1242158
entreprise . charges: 0
entreprise . chiffre d'affaires: 1242158
impôt . montant: 471170"
`;
exports[`calculate simulations-indépendant > DROM 1`] = `
"dirigeant . indépendant . cotisations et contributions . début activité: null
dirigeant . indépendant . revenu professionnel: undefined

View file

@ -33,6 +33,72 @@ protection sociale . retraite . complémentaire: 269
protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV année incomplète 1`] = `
"dirigeant . indépendant . cotisations et contributions: undefined
dirigeant . rémunération . net: undefined
dirigeant . rémunération . net . après impôt: undefined
entreprise . chiffre d'affaires: undefined
impôt . montant: undefined
protection sociale . retraite . base: undefined
protection sociale . retraite . complémentaire: undefined
protection sociale . retraite . trimestres: undefined"
`;
exports[`calculate simulations-professions-libérales > CIPAV année incomplète 2`] = `
"dirigeant . indépendant . cotisations et contributions: 1277
dirigeant . rémunération . net: 2000
dirigeant . rémunération . net . après impôt: 2000
entreprise . chiffre d'affaires: 3277
impôt . montant: 0
protection sociale . retraite . base: 39
protection sociale . retraite . complémentaire: 10
protection sociale . retraite . trimestres: 3"
`;
exports[`calculate simulations-professions-libérales > CIPAV année incomplète 3`] = `
"dirigeant . indépendant . cotisations et contributions: 1884
dirigeant . rémunération . net: 5000
dirigeant . rémunération . net . après impôt: 5000
entreprise . chiffre d'affaires: 6884
impôt . montant: 0
protection sociale . retraite . base: 39
protection sociale . retraite . complémentaire: 24
protection sociale . retraite . trimestres: 3"
`;
exports[`calculate simulations-professions-libérales > CIPAV année incomplète 4`] = `
"dirigeant . indépendant . cotisations et contributions: 3453
dirigeant . rémunération . net: 10000
dirigeant . rémunération . net . après impôt: 10000
entreprise . chiffre d'affaires: 13453
impôt . montant: 0
protection sociale . retraite . base: 76
protection sociale . retraite . complémentaire: 47
protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV année incomplète 5`] = `
"dirigeant . indépendant . cotisations et contributions: 46737
dirigeant . rémunération . net: 100000
dirigeant . rémunération . net . après impôt: 73139
entreprise . chiffre d'affaires: 146737
impôt . montant: 26861
protection sociale . retraite . base: 351
protection sociale . retraite . complémentaire: 851
protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV année incomplète 6`] = `
"dirigeant . indépendant . cotisations et contributions: 252404
dirigeant . rémunération . net: 1000000
dirigeant . rémunération . net . après impôt: 528693
entreprise . chiffre d'affaires: 1252404
impôt . montant: 471307
protection sociale . retraite . base: 360
protection sociale . retraite . complémentaire: 1532
protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV années précédentes 1`] = `
"dirigeant . indépendant . cotisations et contributions: 21094
dirigeant . rémunération . net: 50000
@ -177,10 +243,10 @@ protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV réduction et surcotisation 3`] = `
"dirigeant . indépendant . cotisations et contributions: 46737
"dirigeant . indépendant . cotisations et contributions: 46735
dirigeant . rémunération . net: 100000
dirigeant . rémunération . net . après impôt: 73139
entreprise . chiffre d'affaires: 146737
entreprise . chiffre d'affaires: 146735
impôt . montant: 26861
protection sociale . retraite . base: 351
protection sociale . retraite . complémentaire: 851
@ -254,10 +320,10 @@ protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV échelle de revenu 7`] = `
"dirigeant . indépendant . cotisations et contributions: 46737
"dirigeant . indépendant . cotisations et contributions: 46735
dirigeant . rémunération . net: 100000
dirigeant . rémunération . net . après impôt: 73139
entreprise . chiffre d'affaires: 146737
entreprise . chiffre d'affaires: 146735
impôt . montant: 26861
protection sociale . retraite . base: 351
protection sociale . retraite . complémentaire: 851
@ -265,10 +331,10 @@ protection sociale . retraite . trimestres: 4"
`;
exports[`calculate simulations-professions-libérales > CIPAV échelle de revenu 8`] = `
"dirigeant . indépendant . cotisations et contributions: 252404
"dirigeant . indépendant . cotisations et contributions: 252401
dirigeant . rémunération . net: 1000000
dirigeant . rémunération . net . après impôt: 528693
entreprise . chiffre d'affaires: 1252404
entreprise . chiffre d'affaires: 1252401
impôt . montant: 471307
protection sociale . retraite . base: 360
protection sociale . retraite . complémentaire: 1532

View file

@ -143,3 +143,18 @@ cotisations forfaitaires début d'activité:
- dirigeant . rémunération . totale: 50000 €/an
entreprise . date de création: période . début d'année
dirigeant . exonérations . ACRE: non
Année incomplète:
- &AnnéeIncomplete
entreprise . date de création: 01/05/2024
entreprise . date de cessation: 31/08/2024
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 2000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 5000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 10000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 100000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 1000000 €/an

View file

@ -133,3 +133,18 @@ CIPAV années précédentes:
date: 01/2022
- dirigeant . rémunération . net: 30000 €/an
date: 01/2021
CIPAV année incomplète:
- &AnnéeIncomplete
entreprise . date de création: 01/05/2024
entreprise . date de cessation: 31/08/2024
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 2000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 5000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 10000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 100000 €/an
- <<: *AnnéeIncomplete
dirigeant . rémunération . net: 1000000 €/an