From 2a60b7b3d83c3f9e791e458e4a2b0a0e4f0ef941 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Tue, 15 Mar 2022 17:06:44 +0530 Subject: [PATCH] test: updates --- tests/Pest/MoneyTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()); });