File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class TagRendererTest extends TestCase
13
13
{
14
- public function testRenderScriptTags ()
14
+ public function testRenderScriptTagsWithDefaultAttributes ()
15
15
{
16
16
$ entrypointLookup = $ this ->createMock (EntrypointLookupInterface::class);
17
17
$ entrypointLookup ->expects ($ this ->once ())
@@ -33,15 +33,15 @@ public function testRenderScriptTags()
33
33
->willReturnCallback (function ($ path ) {
34
34
return 'http://localhost:8080 ' .$ path ;
35
35
});
36
- $ renderer = new TagRenderer ($ entrypointCollection , $ packages , [' crossorigin ' => ' anonymous ' ]);
36
+ $ renderer = new TagRenderer ($ entrypointCollection , $ packages , []);
37
37
38
38
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , 'custom_package ' );
39
39
$ this ->assertContains (
40
- '<script crossorigin="anonymous" src="http://localhost:8080/build/file1.js"></script> ' ,
40
+ '<script src="http://localhost:8080/build/file1.js"></script> ' ,
41
41
$ output
42
42
);
43
43
$ this ->assertContains (
44
- '<script crossorigin="anonymous" src="http://localhost:8080/build/file2.js"></script> ' ,
44
+ '<script src="http://localhost:8080/build/file2.js"></script> ' ,
45
45
$ output
46
46
);
47
47
}
You can’t perform that action at this time.
0 commit comments