Skip to content

Commit 7eeb941

Browse files
committed
revert the default test so that it tests with no attribute array
1 parent a74dee0 commit 7eeb941

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Asset/TagRendererTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class TagRendererTest extends TestCase
1313
{
14-
public function testRenderScriptTags()
14+
public function testRenderScriptTagsWithDefaultAttributes()
1515
{
1616
$entrypointLookup = $this->createMock(EntrypointLookupInterface::class);
1717
$entrypointLookup->expects($this->once())
@@ -33,15 +33,15 @@ public function testRenderScriptTags()
3333
->willReturnCallback(function($path) {
3434
return 'http://localhost:8080'.$path;
3535
});
36-
$renderer = new TagRenderer($entrypointCollection, $packages, ['crossorigin'=>'anonymous']);
36+
$renderer = new TagRenderer($entrypointCollection, $packages, []);
3737

3838
$output = $renderer->renderWebpackScriptTags('my_entry', 'custom_package');
3939
$this->assertContains(
40-
'<script crossorigin="anonymous" src="http://localhost:8080/build/file1.js"></script>',
40+
'<script src="http://localhost:8080/build/file1.js"></script>',
4141
$output
4242
);
4343
$this->assertContains(
44-
'<script crossorigin="anonymous" src="http://localhost:8080/build/file2.js"></script>',
44+
'<script src="http://localhost:8080/build/file2.js"></script>',
4545
$output
4646
);
4747
}

0 commit comments

Comments
 (0)