Skip to content

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Mar 8, 2024
1 parent b046475 commit 765468f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Managers/AssetsManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@ public function test_entries_are_enqueued_by_template()
}


public function test_entries_are_enqeued_by_method() {
$this->assets_manager->enqueue_script( 'method-app', 'app.js' );
public function test_entries_are_enqeued_by_method()
{
$this->assets_manager->enqueue_script('method-app', 'app.js');
$this->assertTrue(in_array('theme-method-app', wp_scripts()->queue, true));
$this->assertTrue(str_ends_with(wp_scripts()->query('theme-method-app')->src, '/app.1234.js'));

$this->assets_manager->enqueue_style( 'method-styles', 'styles.css' );
$this->assets_manager->enqueue_style('method-styles', 'styles.css');
$this->assertTrue(in_array('theme-method-styles', wp_styles()->queue, true));
$this->assertTrue(str_ends_with(wp_styles()->query('theme-method-styles')->src, '/styles.1234.css'));
}
Expand Down

0 comments on commit 765468f

Please sign in to comment.