Skip to content

Commit

Permalink
Adds test for middleware on blade mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Feb 16, 2022
1 parent 3eb0a5f commit 6a8bdc7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Http/Middleware/InjectScriptBladeModeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ public function test_doesnt_inject_script(): void
$this->get('form')->assertDontSee('start-poke-script');
}

public function test_doesnt_inject_scripts_using_middleware(): void
{
$this->addMiddleware('form', 'poke');

$this->get('form')->assertDontSee('start-poke-script');
}

public function test_renders_once_on_multiple_declarations(): void
{
$this->get('component-multiple')
Expand Down

0 comments on commit 6a8bdc7

Please sign in to comment.