Skip to content

Commit 3be66ba

Browse files
committed
Fixing test
1 parent cb02c07 commit 3be66ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapRendererTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testNoPolyfill()
9999

100100
public function testCustomScriptAttributes()
101101
{
102-
$renderer = new ImportMapRenderer($this->createBasicImportMapManager(), null, 'UTF-8', 'https://polyfillUrl.example', [
102+
$renderer = new ImportMapRenderer($this->createBasicImportMapManager(), null, 'UTF-8', 'es-module-shims', [
103103
'something' => true,
104104
'data-turbo-track' => 'reload',
105105
]);
@@ -132,6 +132,10 @@ private function createBasicImportMapManager(): ImportMapManager
132132
'path' => 'app.js',
133133
'type' => 'js',
134134
],
135+
'es-module-shims' => [
136+
'path' => 'https://polyfillUrl.example',
137+
'type' => 'js',
138+
],
135139
])
136140
;
137141

0 commit comments

Comments
 (0)