Skip to content

Commit

Permalink
Merge pull request #916 from rluvaton/patch-3
Browse files Browse the repository at this point in the history
fix indentation in code example
  • Loading branch information
elektronik2k5 committed Mar 11, 2021
2 parents 6529a2b + b6d4015 commit 5aa4d5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sections/testingandquality/aaa.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ describe.skip('Customer classifier', () => {
### Code Example – Anti Pattern: no separation, one bulk, harder to interpret
```javascript
test('Should be classified as 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');
});
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');
});
```

<br/><br/>
Expand Down

0 comments on commit 5aa4d5d

Please sign in to comment.