Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv authored and actions-user committed Feb 24, 2022
1 parent 2427a86 commit 3d3e2f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Shiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function getWorkingDirPath(): string
if (static::$customWorkingDirPath !== null && ($path = realpath(static::$customWorkingDirPath)) !== false) {
return $path;
}

return realpath(dirname(__DIR__) . '/bin');
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ShikiCustomRenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Spatie\ShikiPhp\Shiki;
use function Spatie\Snapshots\assertMatchesSnapshot;

beforeEach(fn() => Shiki::setCustomWorkingDirPath(__DIR__ . '/testfiles/alt-bin'));
beforeEach(fn () => Shiki::setCustomWorkingDirPath(__DIR__ . '/testfiles/alt-bin'));

it('can verify the custom CWD path and modify it', function () {
expect((new Shiki())->getWorkingDirPath())
Expand Down
2 changes: 1 addition & 1 deletion tests/ShikiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Spatie\ShikiPhp\Shiki;
use function Spatie\Snapshots\assertMatchesSnapshot;

beforeAll(fn() => Shiki::setCustomWorkingDirPath(null));
beforeAll(fn () => Shiki::setCustomWorkingDirPath(null));

it('can get the default workingDirPath', function () {
expect((new Shiki())->getWorkingDirPath())
Expand Down

0 comments on commit 3d3e2f7

Please sign in to comment.