Skip to content

Commit

Permalink
chore: Changed tests descriptions in AdditionalResourceDataTest
Browse files Browse the repository at this point in the history
  • Loading branch information
roosiu committed Oct 9, 2024
1 parent fd70c25 commit 0093583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Resource/AdditionalResourceDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$this->resource = new ApiResource([]);
});

it('return the api version', function (): void {
it('returns the api version', function (): void {
$response = $this->resource->with($this->request);

expect($response)->toBe(['apiVersion' => config('app.api')]);
Expand All @@ -30,7 +30,7 @@
expect($response->getData()->apiVersion)->toBe(config('app.api'));
});

it('use api version from app', function () {
it('uses api version from config', function () {
expect(config('app.api'))->toBe(config('app.api'));

config(['app.api' => '1.2']);
Expand Down

0 comments on commit 0093583

Please sign in to comment.