Sync french to original

Up to date 5aa4d5db92
This commit is contained in:
forresst
2021-03-12 08:20:18 +01:00
parent 4b4dda9080
commit 03410e8d95

View File

@ -37,12 +37,12 @@ describe.skip('Classification des clients', () => {
### Contre exemple de code : aucune séparation, un seul bloc, plus difficile à interpréter ### Contre exemple de code : aucune séparation, un seul bloc, plus difficile à interpréter
```javascript ```javascript
test('Doit être classé comme premium', () => { test('Doit être classé comme premium', () => {
const customerToClassify = {spent:505, joined: new Date(), id:1} const customerToClassify = {spent:505, joined: new Date(), id:1}
const DBStub = sinon.stub(dataAccess, 'getCustomer') const DBStub = sinon.stub(dataAccess, 'getCustomer')
.reply({id:1, classification: 'ordinaire'}); .reply({id:1, classification: 'regular'});
const receivedClassification = customerClassifier.classifyCustomer(customerToClassify); const receivedClassification = customerClassifier.classifyCustomer(customerToClassify);
expect(receivedClassification).toMatch('premium'); expect(receivedClassification).toMatch('premium');
}); });
``` ```
<br/><br/> <br/><br/>