Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Mar 24, 2023
1 parent c399e95 commit 8947cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Collectors/DefaultCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@

it('will will throw an exception with non existing transformers', function () {
$this->expectException(InvalidTransformerGiven::class);
$this->expectDeprecationMessageMatches("/does not exist!/");
$this->expectExceptionMessage("does not exist!");

/**
* @typescript DtoTransformed
Expand All @@ -192,7 +192,7 @@

it('will will throw an exception with class that does not implement transformer', function () {
$this->expectException(InvalidTransformerGiven::class);
$this->expectDeprecationMessageMatches("/does not implement the Transformer interface!/");
$this->expectExceptionMessage("does not implement the Transformer interface!");

/**
* @typescript-transformer \Spatie\TypeScriptTransformer\Structures\TransformedType
Expand Down

0 comments on commit 8947cfc

Please sign in to comment.