Skip to content

Commit

Permalink
typo and use map
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeysel committed Jul 28, 2023
1 parent 20f1409 commit 411941e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/CommandRouteGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function can_generate_file_using_config_path()
/** @test */
public function can_generate_dts_file()
{
Artisan::call('ziggy:generate', ['--declarations']);
Artisan::call('ziggy:generate', ['--declarations' => true]);

$this->assertFileExists(base_path('resources/js/ziggy.d.ts'));
$this->assertFileExists(base_path('resources/js/ziggy.js'));
Expand All @@ -154,7 +154,7 @@ public function can_generate_dts_file()
/** @test */
public function can_generate_dts_file_without_routes()
{
Artisan::call('ziggy:generat', ['--declarations-only']);
Artisan::call('ziggy:generate', ['--declarations-only' => true]);

$this->assertFileExists(base_path('resources/js/ziggy.d.ts'));
$this->assertFileDoesNotExist(base_path('resources/js/ziggy.js'));
Expand All @@ -165,7 +165,7 @@ public function can_derive_dts_file_path_from_given_dts()
{
config(['ziggy.output.path' => 'resources/js/custom.d.ts']);

Artisan::call('ziggy:generate', ['--declarations-only']);
Artisan::call('ziggy:generate', ['--declarations-only' => true]);

$this->assertFileExists(base_path('resources/js/custom.d.ts'));
}
Expand All @@ -175,7 +175,7 @@ public function can_derive_dts_file_path_from_relative_file_without_extension()
{
config(['ziggy.output.path' => './ziggy']);

Artisan::call('ziggy:generate', ['--declarations-only']);
Artisan::call('ziggy:generate', ['--declarations-only' => true]);

$this->assertFileExists(base_path('ziggy.d.ts'));
}
Expand Down

0 comments on commit 411941e

Please sign in to comment.