18 lines
453 B
JavaScript
18 lines
453 B
JavaScript
import { expect } from 'chai'
|
|
import Syso from '../source/engine/index'
|
|
|
|
describe('indeps', function() {
|
|
it('should compute income for indépendant', function() {
|
|
let values = Syso.evaluate(['revenu net'], {
|
|
"entreprise . chiffre d'affaires": 70000,
|
|
'entreprise . charges': 1000,
|
|
indépendant: 'oui',
|
|
'auto-entrepreneur': 'non',
|
|
'contrat salarié': 'non',
|
|
période: 'année'
|
|
})
|
|
|
|
expect(values[0]).to.be.closeTo(39623, 1)
|
|
})
|
|
})
|