Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jan 7, 2024
1 parent f422af7 commit 906ef40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/PackagerSingleQuoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected function setUp(): void
parent::setUp();

$this->singleQuoteFilePath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'single-quote-importmap-'.Str::random(8).'.php';
copy(__DIR__.implode(DIRECTORY_SEPARATOR, ['', 'fixtures', 'npm', 'single-quote-importmap.php']), $this->singleQuoteFilePath);
copy(__DIR__.implode(DIRECTORY_SEPARATOR, ['', 'fixtures', 'npm', 'single-quote-importmap.php']), $this->singleQuoteFilePath);
$this->packager = new Packager($this->singleQuoteFilePath);
}

Expand Down
3 changes: 2 additions & 1 deletion tests/PreloadingWithLinkHeadersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public function sets_link_header_when_pins_are_preloaded(): void
$map->pin('editor', to: 'js/rich_text.js', preload: false);
$map->pinAllFrom('resources/js/', under: 'controllers', to: 'js/', preload: true);

$resolver = new class () extends AssetResolver {
$resolver = new class() extends AssetResolver
{
public function __invoke($module)
{
return 'http://localhost/'.str_replace(['.js'], ['-123123.js'], $module);
Expand Down

0 comments on commit 906ef40

Please sign in to comment.