File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ postnumber: 19
10
10
11
11
In this chapter we will be unit testing our mutation.
12
12
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:
14
14
15
15
``` javascript
16
16
import { makeABooking } from " ../src/resolvers/mutation" ;
@@ -49,13 +49,13 @@ describe("Make a booking", () => {
49
49
}
50
50
` ` `
51
51
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.
53
53
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.
55
55
56
56
Then go to your terminal and run the test:
57
57
58
- ` ` `
58
+ ` ` ` javascript
59
59
$ yarn test makeABooking .test .js
60
60
` ` `
61
61
You can’t perform that action at this time.
0 commit comments