diff --git a/tests/Unit/ViteManagerTest.php b/tests/Unit/ViteManagerTest.php index c6db01a..e788bab 100644 --- a/tests/Unit/ViteManagerTest.php +++ b/tests/Unit/ViteManagerTest.php @@ -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);