2018-12-05 17:58:38 +00:00
|
|
|
import { expect } from 'chai'
|
|
|
|
import Syso from '../source/engine/index'
|
2018-12-10 16:21:20 +00:00
|
|
|
import indeps from '../source/règles/base.yaml'
|
2018-12-05 17:58:38 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
})
|
|
|
|
})
|