Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Danilchenko committed Dec 8, 2023
1 parent 46fc25c commit c5e427e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Unit/ViteManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ public function testItCanBeConfiguredWithArray(): void
$this->assertEquals($this->getViteProperty($vite, 'preloadTagAttributesResolvers')[0](), $config['tag_attributes']['preload']);
}

public function testItComplementsEntryPoints(): void
public function testItAppendsEntryPoints(): void
{
$vite = Vite::withEntryPoints(['entry1']);
$vite = Vite::withEntryPoints(['entry']);
$this->assertEquals(['entry'], $this->getViteProperty($vite, 'entryPoints'));

$vite->withEntryPoints(['entry1']);
$this->assertEquals(['entry1'], $this->getViteProperty($vite, 'entryPoints'));

$vite->withEntryPoints(['entry2'], true);
Expand Down

0 comments on commit c5e427e

Please sign in to comment.