Skip to content

Commit 23fc8f1

Browse files
authored
AssetLocator: entrypoints with absolute url should not be changed - fixed tests (#38)
1 parent 105ec89 commit 23fc8f1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/AssetLocatorTest.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ final class AssetLocatorTest extends TestCase
3737

3838
$assetLocator = new AssetLocator($directoryProvider, $pathProvider, $assetResolver, $devServer, []);
3939
Assert::same('/foo/bar.js', $assetLocator->locateInPublicPath('bar.js'));
40-
Assert::same('http://localhost/foo1.js', $assetLocator->locateInBuildDirectory('foo1.js'));
41-
Assert::same('//localhost/foo2.js', $assetLocator->locateInBuildDirectory('foo2.js'));
40+
Assert::same('http://localhost/foo1.js', $assetLocator->locateInPublicPath('foo1.js'));
41+
Assert::same('//localhost/foo2.js', $assetLocator->locateInPublicPath('foo2.js'));
4242
}
4343

4444
public function testIgnoredAssets(): void
@@ -57,7 +57,6 @@ final class AssetLocatorTest extends TestCase
5757
Assert::same('http://localhost/foo1.js', $assetLocator->locateInPublicPath('foo1.js'));
5858
Assert::same('//localhost/foo2.js', $assetLocator->locateInBuildDirectory('foo2.js'));
5959
Assert::same('//localhost/foo2.js', $assetLocator->locateInPublicPath('foo2.js'));
60-
Assert::same('data:,', $assetLocator->locateInBuildDirectory('foo.css'));
6160
}
6261
}
6362

0 commit comments

Comments
 (0)