Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Nov 1, 2023
1 parent 14a557a commit a796602
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public function testCompileDynamicallyAddsContents()

$compiledContents = $compiler->compile($startingContents, $loaderAsset, $this->createMock(AssetMapperInterface::class));
$this->assertStringContainsString(
"import controller_0 from '../../controllers/foo-controller.js';",
'import controller_0 from "../../controllers/foo-controller.js";',
$compiledContents,
);
$this->assertStringContainsString(
"import controller_1 from '../../in-root_controller.js';",
'import controller_1 from "../../in-root_controller.js";',
$compiledContents,
);
$this->assertStringContainsString(
Expand Down Expand Up @@ -107,7 +107,7 @@ public function testDebugModeIsSetCorrectly()

private function createAsset(string $publicPath): MappedAsset
{
$asset = new MappedAsset(basename($publicPath), publicPathWithoutDigest: $publicPath);
$asset = new MappedAsset(basename($publicPath), '/path/to/project/'.$publicPath, publicPathWithoutDigest: $publicPath);

return $asset;
}
Expand Down

0 comments on commit a796602

Please sign in to comment.