1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-27 19:20:12 +02:00

Add content for AssertionErrors (#3090)

* Update Node.js roadmap Assertion Errors

Updated Assertion Errors block with some useful links and description

* Update content/roadmaps/107-nodejs/content/103-nodejs-error-handling/103-error-types/103-assertion-errors.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
Yuriy Vorobyov
2023-01-04 17:48:48 +03:00
committed by GitHub
parent 3f31e3889b
commit 4a7cdd6da2

View File

@@ -1 +1,7 @@
# Assertion errors
# Assertion Errors
An `AssertionError` in Node.js is an error that is thrown when the `assert` module determines that a given expression is not truthy. The `assert` module is a built-in Node.js module that provides a simple set of assertion tests that can be used to test the behavior of your code.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://nodejs.org/api/assert.html#new-assertassertionerroroptions'>Node.js Assert</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://blog.airbrake.io/blog/nodejs-error-handling/assertionerror-nodejs'>Node.js Error Handling - AssertionError</BadgeLink>