Skip to content

Commit e5e919d

Browse files
authored
Update readme.md
1 parent ee52b39 commit e5e919d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ it("When visiting TestJavaScript.com home page, a menu is displayed", () => {
554554
![](https://img.shields.io/badge/🔧%20Example%20using%20Mocha-blue.svg "Examples with Mocha")
555555

556556
```javascript
557-
test("When no credit, the declined transfer does not appear in sender history", async() => {
557+
test("When no credit, then the transfer is declined", async() => {
558558
// Arrange
559559
const transferRequest = testHelpers.factorMoneyTransfer() //get back 200 lines of JSON;
560560
const transferServiceUnderTest = new TransferService();
@@ -573,7 +573,7 @@ test("When no credit, the declined transfer does not appear in sender history",
573573

574574
```javascript
575575

576-
test("When no credit, the declined transfer does not appear in sender history", async() => {
576+
test("When no credit, then the transfer is declined ", async() => {
577577
// Arrange
578578
const transferRequest = testHelpers.factorMoneyTransfer({userCredit:100, transferAmount:200}) //obviously there is lack of credit
579579
const transferServiceUnderTest = new TransferService({disallowOvercharge:true});
@@ -583,11 +583,12 @@ test("When no credit, the declined transfer does not appear in sender history",
583583

584584
// Assert
585585
expect(transferResponse.status).toBe(409); // Obviously if the user has no credit it should fail
586-
});```
586+
});
587+
```
587588

588589
</details>
589590

590-
<br/>
591+
<br/><br/>
591592

592593
## ⚪ ️ 1.10 Don’t catch errors, expect them
593594

0 commit comments

Comments
 (0)