Skip to content

Commit

Permalink
[FIX] Prevent unneceassary JS loading in the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
jdamner committed Dec 3, 2024
1 parent 9d3c1f0 commit c5e5f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/iconography/tests/TestIcononographyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testInit(): void {
\WP_Mock::expectActionAdded( 'wp_enqueue_scripts', array( $class_in_test, 'register_assets' ) );
\WP_Mock::expectActionAdded( 'wp_footer', array( $class_in_test, 'enqueue_assets' ), 1, 0 );
\WP_Mock::expectActionAdded( 'enqueue_block_assets', array( $class_in_test, 'register_assets' ), 1, 0 );
\WP_Mock::expectActionAdded( 'enqueue_block_assets', array( $class_in_test, 'enqueue_editor_scripts' ) );
\WP_Mock::expectActionAdded( 'enqueue_block_editor_assets', array( $class_in_test, 'enqueue_editor_scripts' ) );
\WP_Mock::expectActionAdded( 'enqueue_block_assets', array( $class_in_test, 'enqueue_all_assets' ) );

$class_in_test->init();
Expand Down

0 comments on commit c5e5f1e

Please sign in to comment.