Skip to content

Commit

Permalink
toucheing up mutation test
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoDinho committed Oct 1, 2020
1 parent 4d512cc commit 9d641a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/unit-testing-mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ postnumber: 19

In this chapter we will be unit testing our mutation.

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

```javascript
import { makeABooking } from "../src/resolvers/mutation";
Expand Down Expand Up @@ -49,13 +49,13 @@ describe("Make a booking", () => {
}
```
💣 We are creating a mutation in the args with the necessary data.
💣 We are creating a mutation in the `args` with the necessary data.
💣 Next we are making sure we get back a bookingId that the charge matches what we expect it to be.
💣 Next we are making sure we get back a `bookingId` that the charge matches what we expect it to be.
Then go to your terminal and run the test:
```
```javascript
$ yarn test makeABooking.test.js
```
Expand Down

0 comments on commit 9d641a3

Please sign in to comment.