Skip to content

Commit 9d641a3

Browse files
committed
toucheing up mutation test
1 parent 4d512cc commit 9d641a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/unit-testing-mutations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ postnumber: 19
1010

1111
In this chapter we will be unit testing our mutation.
1212

13-
In the tests folder, create a makeABooking.test.js file and add the following:
13+
In the `tests` folder, create a `makeABooking.test.js` file and add the following:
1414

1515
```javascript
1616
import { makeABooking } from "../src/resolvers/mutation";
@@ -49,13 +49,13 @@ describe("Make a booking", () => {
4949
}
5050
```
5151
52-
💣 We are creating a mutation in the args with the necessary data.
52+
💣 We are creating a mutation in the `args` with the necessary data.
5353
54-
💣 Next we are making sure we get back a bookingId that the charge matches what we expect it to be.
54+
💣 Next we are making sure we get back a `bookingId` that the charge matches what we expect it to be.
5555
5656
Then go to your terminal and run the test:
5757
58-
```
58+
```javascript
5959
$ yarn test makeABooking.test.js
6060
```
6161

0 commit comments

Comments
 (0)