Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored and github-actions[bot] committed Sep 3, 2023
1 parent d8ed1b5 commit e902deb
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions tests/Mechanisms/RappasoftFrontendAssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,32 @@

namespace Rappasoft\LaravelLivewireTables\Tests\Mechanisms;

use Rappasoft\LaravelLivewireTables\Tests\TestCase;
use Rappasoft\LaravelLivewireTables\Mechanisms\RappasoftFrontendAssets;
use function Livewire\trigger;
use Rappasoft\LaravelLivewireTables\Tests\TestCase;

class RappasoftFrontendAssetsTest extends TestCase
{
/** @test */
public function styles()
{
$assets = app(RappasoftFrontendAssets::class);

$this->assertFalse($assets->hasRenderedRappsoftTableStyles);

$this->assertStringStartsWith('<link href="/rappasoft/laravel-livewire-tables/core.min.css" rel="stylesheet" />', ltrim($assets->tableStyles()));

$this->assertTrue($assets->hasRenderedRappsoftTableStyles);
}

/** @test */
public function scripts()
{
$assets = app(RappasoftFrontendAssets::class);

$this->assertFalse($assets->hasRenderedRappsoftTableScripts);

/** @test */
public function styles()
{
$assets = app(RappasoftFrontendAssets::class);

$this->assertFalse($assets->hasRenderedRappsoftTableStyles);

$this->assertStringStartsWith('<link href="/rappasoft/laravel-livewire-tables/core.min.css" rel="stylesheet" />', ltrim($assets->tableStyles()));

$this->assertTrue($assets->hasRenderedRappsoftTableStyles);
}

/** @test */
public function scripts()
{
$assets = app(RappasoftFrontendAssets::class);

$this->assertFalse($assets->hasRenderedRappsoftTableScripts);

$this->assertStringStartsWith('<script src="', $assets->tableScripts());

$this->assertTrue($assets->hasRenderedRappsoftTableScripts);
}
$this->assertStringStartsWith('<script src="', $assets->tableScripts());

$this->assertTrue($assets->hasRenderedRappsoftTableScripts);
}
}

0 comments on commit e902deb

Please sign in to comment.