From 3bfe3cf9d8e3462bc29e365e4b28e905773c05ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ewilan=20Rivi=C3=A8re?= Date: Thu, 1 Feb 2024 18:53:09 +0100 Subject: [PATCH] Remove debugging statements and update test assertion --- src/Livewire/Traits/LiveListing.php | 1 - src/Utils/Json.php | 1 - tests/ArchTest.php | 11 +++++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Livewire/Traits/LiveListing.php b/src/Livewire/Traits/LiveListing.php index a0bc33a..73aff56 100644 --- a/src/Livewire/Traits/LiveListing.php +++ b/src/Livewire/Traits/LiveListing.php @@ -37,7 +37,6 @@ public function initializeLiveListing() $defaultSize = config('steward.livewire.pagination.default', 20); $this->size = Session::get('size', $defaultSize); // $this->sort = ! empty($this->sort) ? $this->sort : $this->defaultSort; - ray($this); $this->sort = 'id'; $this->sortable = $this->sortable(); diff --git a/src/Utils/Json.php b/src/Utils/Json.php index 83ecb8b..5c47b87 100644 --- a/src/Utils/Json.php +++ b/src/Utils/Json.php @@ -74,7 +74,6 @@ public function save(string $saveTo, bool $console = true): void public function toArray(bool $is_associative = true): array { - ray($this->contents); if (is_null($this->contents)) { return []; } diff --git a/tests/ArchTest.php b/tests/ArchTest.php index 339d4a7..d5d0508 100644 --- a/tests/ArchTest.php +++ b/tests/ArchTest.php @@ -1,8 +1,7 @@ expect(['dd', 'dump', 'ray']) -// ->each() -// ->not() -// ->toBeUsed() -// ; +it('will not use debugging functions') + ->expect(['dd', 'dump', 'ray']) + ->each() + ->not() + ->toBeUsed();