mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-27 19:17:13 +08:00
@ -39,10 +39,10 @@ describe.skip('Classification des clients', () => {
|
||||
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'});
|
||||
.reply({id:1, classification: 'regular'});
|
||||
const receivedClassification = customerClassifier.classifyCustomer(customerToClassify);
|
||||
expect(receivedClassification).toMatch('premium');
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
<br/><br/>
|
||||
|
||||
Reference in New Issue
Block a user