lamed_test
Version:
Mocha unit testing made easy
14 lines (10 loc) • 390 B
Markdown
# Function unThrow (func, throwError)
>**unThrow**(func, throwError)
- Test the function for the error thrown
- **Return {bool}** - Returns false if no error was thrown
- See [Functions](../functions.md)
## Parameters
| Parameter |Type |Default |Description |
| ---- | ---- | ---- | ---- |
**func** |function | |The function to test |
**throwError** |bool |true |If true throws error |