# HowTo use assert

**URL:** <https://discourse.nodered.org/t/howto-use-assert/77718>\
**Category:** General\
**Created:** [19 April 2023 16:10 UTC](https://discourse.nodered.org/t/howto-use-assert/77718 "2023-04-19T16:10:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [19 April 2023 16:25 UTC](https://discourse.nodered.org/t/howto-use-assert/77718/3 "2023-04-19T16:25:33Z")

</div>

> [@GogoVega](#):
>
> Don't forget to install `assert` module in `.node-red` folder first.

If adding the required module in the function node properties, you don't need to install the required module manually.

Node RED will pull it in automatically for you.

Also @Moosbueffel you can't use `require` in a function node.  
Just call into any offerings by the `import as` value

so if `import as` is set to `AST` then In a function node:

`AST.deepStrictEqual`

---

_[View the full topic](https://discourse.nodered.org/t/howto-use-assert/77718)._
