Skip to content

Commit

Permalink
Remove legacy Tailwind tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed May 1, 2022
1 parent e036151 commit 9b2034d
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions tests/Feature/AssetServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,10 @@ public function test_version_method_returns_version_property_when_config_overrid
public function test_can_change_version_in_config()
{
$service = new AssetService();
Config::set('hyde.cdnHydeFrontVersionOverride', '2.0.0');
Config::set('hyde.cdnVersionOverride', '2.0.0');
$this->assertEquals('2.0.0', $service->version());
}

public function test_tailwind_path_method_returns_false_if_null_in_config()
{
$service = new AssetService();
Config::set('hyde.loadTailwindFromCDN');
$this->assertFalse($service->tailwindPath());
}

public function test_tailwind_path_method_returns_false_if_disabled_in_config()
{
$service = new AssetService();
Config::set('hyde.loadTailwindFromCDN', false);
$this->assertFalse($service->tailwindPath());
}

public function test_tailwind_path_method_returns_cdn_path_if_enabled_in_config()
{
$service = new AssetService();
Config::set('hyde.loadTailwindFromCDN', true);
$this->assertIsString($service->tailwindPath());
$this->assertStringContainsString('app.css', $service->tailwindPath());
}

public function test_style_path_method_returns_cdn_path()
{
$service = new AssetService();
Expand All @@ -83,7 +61,7 @@ public function test_cdn_path_constructor_returns_cdn_uri()
public function test_cdn_path_constructor_uses_selected_version()
{
$service = new AssetService();
Config::set('hyde.cdnHydeFrontVersionOverride', '1.2.3');
Config::set('hyde.cdnVersionOverride', '1.2.3');
$this->assertStringContainsString('@1.2.3', $service->cdnPathConstructor('styles.css'));
}
}

0 comments on commit 9b2034d

Please sign in to comment.