Skip to content

Commit

Permalink
Tests reset paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jan 23, 2025
1 parent dea8d75 commit c9d4feb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Unit/HotreloadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@ public function can_add_paths(): void

$this->assertContains(__DIR__, Hotreload::cssPaths());
}

#[Test]
public function resets_paths(): void
{
$before = Hotreload::htmlPaths();

Hotreload::addHtmlPath(__DIR__);
Hotreload::resetPaths();

$this->assertEquals($before, Hotreload::htmlPaths());
}
}

0 comments on commit c9d4feb

Please sign in to comment.