10000 fixing test · symfony/symfony@02844e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02844e8

Browse files
committed
fixing test
1 parent de7fba7 commit 02844e8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Symfony/Component/AssetMapper/Tests/Compiler/JavaScriptImportPathCompilerTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testCompile(string $sourceLogicalName, string $input, array $exp
4545

4646
return null;
4747
});
48-
$compiler = new JavaScriptImportPathCompiler($this->createMock(ImportMapManager::class));
48+
$compiler = new JavaScriptImportPathCompiler($importMapManager);
4949
// compile - and check that content doesn't change
5050
$this->assertSame($input, $compiler->compile($input, $asset, $this->createAssetMapper()));
5151
$actualImports = [];
@@ -94,12 +94,6 @@ public static function provideCompileTests(): iterable
9494
],
9595
];
9696

97-
yield 'dynamic_avoid_resolving_non_relative_imports' => [
98-
'sourceLogicalName' => 'app.js',
99-
'input' => 'import("other.js");',
100-
'expectedJavaScriptImports' => [],
101-
];
102-
10397
yield 'dynamic_resolves_dynamic_imports_later_in_file' => [
10498
'sourceLogicalName' => 'app.js',
10599
'input' => "console.log('Hello test!');\n import('./subdir/foo.js').then(() => console.log('inside promise!'));",

0 commit comments

Comments
 (0)
0