From 03410e8d951e9294a788daad5b86d028628f9020 Mon Sep 17 00:00:00 2001 From: forresst Date: Fri, 12 Mar 2021 08:20:18 +0100 Subject: [PATCH] Sync french to original Up to date https://github.com/goldbergyoni/nodebestpractices/commit/5aa4d5db92d3b079420135f799dad136feb48946 --- sections/testingandquality/aaa.french.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sections/testingandquality/aaa.french.md b/sections/testingandquality/aaa.french.md index c5f4ff7a..c947264c 100644 --- a/sections/testingandquality/aaa.french.md +++ b/sections/testingandquality/aaa.french.md @@ -37,12 +37,12 @@ describe.skip('Classification des clients', () => { ### Contre exemple de code : aucune séparation, un seul bloc, plus difficile à interpréter ```javascript test('Doit être classé comme premium', () => { - const customerToClassify = {spent:505, joined: new Date(), id:1} - const DBStub = sinon.stub(dataAccess, 'getCustomer') - .reply({id:1, classification: 'ordinaire'}); - const receivedClassification = customerClassifier.classifyCustomer(customerToClassify); - expect(receivedClassification).toMatch('premium'); - }); + const customerToClassify = {spent:505, joined: new Date(), id:1} + const DBStub = sinon.stub(dataAccess, 'getCustomer') + .reply({id:1, classification: 'regular'}); + const receivedClassification = customerClassifier.classifyCustomer(customerToClassify); + expect(receivedClassification).toMatch('premium'); +}); ```