Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 5, 2024
1 parent b5e9a58 commit 680fa38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/web/twig/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -980,9 +980,9 @@ public function testCloneFunction(): void
*/
public function testDataUrlFunction(): void
{
$path = dirname(__DIR__, 3) . '/_data/assets/files/craft-logo.svg';
$path = dirname(__DIR__, 4) . '/.github/workflows/ci.yml';
$dataUrl = $this->view->renderString('{{ dataUrl(path) }}', compact('path'));
self::assertStringStartsWith('data:image/svg+xml;base64,', $dataUrl);
self::assertStringStartsWith('data:application/x-yaml;base64,', $dataUrl);
}

public function testExpressionFunction(): void
Expand Down

0 comments on commit 680fa38

Please sign in to comment.