1 00:00:01,400 --> 00:00:05,630 One last quick test inside of our current user test file so I want to make sure that if we are not signed 2 00:00:05,630 --> 00:00:08,220 in we get back a current user of No. 3 00:00:08,240 --> 00:00:10,540 So this will be really easy to put together. 4 00:00:10,550 --> 00:00:17,360 We'll put together another block down here and we'll say it responds with null if not authenticated 5 00:00:21,210 --> 00:00:28,360 then we'll get our response from a wait request app. 6 00:00:28,360 --> 00:00:34,310 I can make a GET request to API users current user and then of course this time I'm not going to try 7 00:00:34,320 --> 00:00:38,790 to set any cookie because we want to make an authentic heated request. 8 00:00:38,800 --> 00:00:45,220 I'm going to send it off even though I'm not authenticated I should still get back a two hundred let's 9 00:00:45,220 --> 00:00:50,750 make sure that still the case that we could take a look at that response body and make sure that current 10 00:00:50,750 --> 00:00:53,550 user is no took a bit down. 11 00:00:53,550 --> 00:01:00,870 Expect response not body for a user to equal no 12 00:01:04,210 --> 00:01:05,580 going to say that. 13 00:01:05,790 --> 00:01:10,750 Take a look at our tests very good. 14 00:01:10,900 --> 00:01:14,800 All right well that is pretty much it for testing on our auth service. 15 00:01:14,800 --> 00:01:17,350 We've got some tests around all these root handlers. 16 00:01:17,350 --> 00:01:21,250 Now remember there are two other types of tests we're going to eventually write as well. 17 00:01:21,250 --> 00:01:25,600 We're going to eventually start to write tests around our models and around some event handling stuff 18 00:01:25,600 --> 00:01:26,370 as well. 19 00:01:26,590 --> 00:01:31,270 But our model in this case the user model does really have a lot of logic tied to it compared to some 20 00:01:31,300 --> 00:01:33,440 other models we're going to eventually put together. 21 00:01:33,460 --> 00:01:36,500 So I'm not gonna worry about writing any tests around the User model just yet. 22 00:01:36,520 --> 00:01:39,970 In addition we have not wired up any event stuff to our service just yet. 23 00:01:39,990 --> 00:01:41,820 We're not going to worry about that either. 24 00:01:41,830 --> 00:01:44,050 Let's take a pause right here and continue in just a moment.