diff --git a/tests/Pest/MoneyTest.php b/tests/Pest/MoneyTest.php index 586b8b7..b8055f1 100644 --- a/tests/Pest/MoneyTest.php +++ b/tests/Pest/MoneyTest.php @@ -1,6 +1,7 @@ remove(USD::class); - pest()->expectException(\Exception::class); + pest()->expectException(CannotExtractCurrencyException::class); Money::fromFormatted($formatted); }); @@ -173,7 +174,7 @@ test('an exception is thrown if multiple currencies are using the same prefix an currencies()->add(['code' => 'USD2', 'name' => 'USD2', 'prefix' => '$']); $money = money(1000); - pest()->expectException(\Exception::class); + pest()->expectException(CannotExtractCurrencyException::class); Money::fromFormatted($money->formatted()); });