Skip to content

Commit efdc276

Browse files
committed
fix tests for crossorigin="anonymous"
1 parent 99e8bce commit efdc276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Asset/TagRendererTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ public function testRenderScriptTagsWithHashes()
164164

165165
$output = $renderer->renderWebpackScriptTags('my_entry', 'custom_package');
166166
$this->assertContains(
167-
'<script src="http://localhost:8080/build/file1.js" integrity="sha384-Q86c+opr0lBUPWN28BLJFqmLhho+9ZcJpXHorQvX6mYDWJ24RQcdDarXFQYN8HLc"></script>',
167+
'<script src="http://localhost:8080/build/file1.js" integrity="sha384-Q86c+opr0lBUPWN28BLJFqmLhho+9ZcJpXHorQvX6mYDWJ24RQcdDarXFQYN8HLc" crossorigin="anonymous"></script>',
168168
$output
169169
);
170170
$this->assertContains(
171-
'<script src="http://localhost:8080/build/file2.js" integrity="sha384-ymG7OyjISWrOpH9jsGvajKMDEOP/mKJq8bHC0XdjQA6P8sg2nu+2RLQxcNNwE/3J"></script>',
171+
'<script src="http://localhost:8080/build/file2.js" integrity="sha384-ymG7OyjISWrOpH9jsGvajKMDEOP/mKJq8bHC0XdjQA6P8sg2nu+2RLQxcNNwE/3J" crossorigin="anonymous"></script>',
172172
$output
173173
);
174174
}

0 commit comments

Comments
 (0)