test: Fix API reference in readme (#1730)

diff --git a/pkgs/test/README.md b/pkgs/test/README.md
index d826d22..8f4fe09 100644
--- a/pkgs/test/README.md
+++ b/pkgs/test/README.md
@@ -104,7 +104,7 @@
 ```
 
 You can also test exceptions with the [`throwsA()`] function or a matcher
-such as [`throwsException`]:
+such as [`throwsFormatException`]:
 
 [`throwsA()`]: https://pub.dev/documentation/test_api/latest/expect/throwsA.html