Skip to content

Commit

Permalink
Update tests for new ID
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jun 3, 2024
1 parent 2841f8f commit 0e6281c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/tests/script-modules/wpScriptModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ function ( $data ) {
$actual = get_echo( array( $this->script_modules, 'print_script_module_data' ) );

$expected = <<<HTML
<script type="application/json" id="wp-scriptmodule-data_@test/module">
<script type="application/json" id="wp-script-module-data-@test/module">
{"foo":"bar"}
</script>
Expand All @@ -774,7 +774,7 @@ function ( $data ) {
$actual = get_echo( array( $this->script_modules, 'print_script_module_data' ) );

$expected = <<<HTML
<script type="application/json" id="wp-scriptmodule-data_@test/dependency">
<script type="application/json" id="wp-script-module-data-@test/dependency">
{"foo":"bar"}
</script>
Expand Down Expand Up @@ -846,7 +846,7 @@ function ( $data ) use ( $input ) {
$actual = get_echo( array( $this->script_modules, 'print_script_module_data' ) );

$expected = <<<HTML
<script type="application/json" id="wp-scriptmodule-data_@test/module">
<script type="application/json" id="wp-script-module-data-@test/module">
{"":"{$expected}"}
</script>
Expand Down

0 comments on commit 0e6281c

Please sign in to comment.