@@ -15,14 +15,12 @@ public function test_the_version_can_be_a_number()
15
15
16
16
$ request = Request::create ('/user/123 ' , 'GET ' );
17
17
$ request ->headers ->add (['X-Inertia ' => 'true ' ]);
18
- $ request ->headers ->add (['X-Inertia-Version ' => 1597347897973 ]);
18
+ $ request ->headers ->add (['X-Inertia-Version ' => ' 1597347897973 ' ]);
19
19
20
20
$ response = $ this ->makeMockResponse ($ request );
21
21
22
22
$ response ->assertSuccessful ();
23
- $ response ->assertJson ([
24
- 'component ' => 'User/Edit ' ,
25
- ]);
23
+ $ response ->assertJson (['component ' => 'User/Edit ' ]);
26
24
}
27
25
28
26
public function test_the_version_can_be_a_string ()
@@ -36,9 +34,7 @@ public function test_the_version_can_be_a_string()
36
34
$ response = $ this ->makeMockResponse ($ request );
37
35
38
36
$ response ->assertSuccessful ();
39
- $ response ->assertJson ([
40
- 'component ' => 'User/Edit ' ,
41
- ]);
37
+ $ response ->assertJson (['component ' => 'User/Edit ' ]);
42
38
}
43
39
44
40
public function test_the_version_can_be_a_closure ()
@@ -54,9 +50,7 @@ public function test_the_version_can_be_a_closure()
54
50
$ response = $ this ->makeMockResponse ($ request );
55
51
56
52
$ response ->assertSuccessful ();
57
- $ response ->assertJson ([
58
- 'component ' => 'User/Edit ' ,
59
- ]);
53
+ $ response ->assertJson (['component ' => 'User/Edit ' ]);
60
54
}
61
55
62
56
public function test_it_will_instruct_inertia_to_reload_on_a_version_mismatch ()
0 commit comments