File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88use Illuminate \Support \Facades \Vite ;
99use Illuminate \Testing \TestResponse ;
1010use Laravel \Boost \Middleware \InjectBoost ;
11+ use Pest \Expectation ;
1112use Symfony \Component \HttpFoundation \BinaryFileResponse ;
1213use Symfony \Component \HttpFoundation \JsonResponse ;
1314use Symfony \Component \HttpFoundation \RedirectResponse ;
@@ -63,18 +64,18 @@ function createMiddlewareResponse($response): SymfonyResponse
6364 'non-html content type ' => [
6465 'scenario ' ,
6566 fn () => (new Response ('test ' ))->withHeaders (['content-type ' => 'application/json ' ]),
66- fn ($ result ): \ Pest \ Mixins \ Expectation => expect ($ result ->getContent ())->toBe ('test ' ),
67+ fn ($ result ): Expectation => expect ($ result ->getContent ())->toBe ('test ' ),
6768 ],
6869 'missing html skeleton ' => [
6970 'scenario ' ,
7071 fn () => (new Response ('test ' ))->withHeaders (['content-type ' => 'text/html ' ]),
71- fn ($ result ): \ Pest \ Mixins \ Expectation => expect ($ result ->getContent ())->toBe ('test ' ),
72+ fn ($ result ): Expectation => expect ($ result ->getContent ())->toBe ('test ' ),
7273 ],
7374 'already injected ' => [
7475 'scenario ' ,
7576 fn () => (new Response ('<html><head><title>Test</title></head><body><div class="browser-logger-active"></div></body></html> ' ))
7677 ->withHeaders (['content-type ' => 'text/html ' ]),
77- fn ($ result ): \ Pest \ Mixins \ Expectation => expect ($ result ->getContent ())->toContain ('browser-logger-active ' ),
78+ fn ($ result ): Expectation => expect ($ result ->getContent ())->toContain ('browser-logger-active ' ),
7879 ],
7980]);
8081
You can’t perform that action at this time.
0 commit comments