Skip to content

Commit

Permalink
Remove debugging statements and update test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Feb 1, 2024
1 parent 1fee46a commit 3bfe3cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Livewire/Traits/LiveListing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion src/Utils/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down
11 changes: 5 additions & 6 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

// it('will not use debugging functions')
// ->expect(['dd', 'dump', 'ray'])
// ->each()
// ->not()
// ->toBeUsed()
// ;
it('will not use debugging functions')
->expect(['dd', 'dump', 'ray'])
->each()
->not()
->toBeUsed();

0 comments on commit 3bfe3cf

Please sign in to comment.