1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 23:25:02 +00:00
mon-entreprise/test/indépendants.test.js
Mael 6c6748fecb Premier résultat du calcul de la rémunération des indépendants
Premier résultat, mais résultat totalement faux
2019-01-07 11:35:10 +01:00

17 lines
383 B
JavaScript

import { expect } from 'chai'
import Syso from '../source/engine/index'
import indeps from '../source/règles/indépendants.yaml'
describe('indeps', function() {
it('allez là', function() {
let values = Syso.evaluate(
['indépendants . revenu net de cotisations'],
{ "chiffre d'affaires": 100000 },
{
base: indeps
}
)
expect(values[0]).to.equal(201)
})
})