Skip to content

Commit

Permalink
compat: assert file not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeysel committed Jul 28, 2023
1 parent 411941e commit 59985ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Unit/CommandRouteGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ public function can_generate_dts_file_without_routes()
Artisan::call('ziggy:generate', ['--declarations-only' => true]);

$this->assertFileExists(base_path('resources/js/ziggy.d.ts'));
$this->assertFileDoesNotExist(base_path('resources/js/ziggy.js'));

if(method_exists($this, 'assertFileDoesNotExist'))
$this->assertFileDoesNotExist(base_path('resources/js/ziggy.js'));
else
$this->assertFileNotExists(base_path('resources/js/ziggy.js'));
}

/** @test */
Expand Down

0 comments on commit 59985ed

Please sign in to comment.