Skip to content

Commit

Permalink
Update .dev/tests/phpunit/includes/test-coblocks-block-assets.php
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Herman <[email protected]>
  • Loading branch information
AnthonyLedesma and EvanHerman authored Nov 6, 2023
1 parent 59a78d1 commit a05ede0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .dev/tests/phpunit/includes/test-coblocks-block-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,7 @@ public function test_editor_assets_scripts() {
$files = glob( $path );

foreach($files as $file) {
$dist_script = end(
explode('/',
explode('.',
$file
)[0]
)
);
$dist_script = pathinfo( $file, PATHINFO_FILENAME );

if ( $dist_script == 'coblocks-plugin-deactivation' ) {
$this->assertFalse( array_key_exists( $dist_script, $wp_scripts->registered ) );
Expand Down

0 comments on commit a05ede0

Please sign in to comment.