# Testing: assert a message is not sent

**URL:** <https://discourse.nodered.org/t/testing-assert-a-message-is-not-sent/40160>\
**Category:** Developing Nodes\
**Created:** [1 February 2021 10:40 UTC](https://discourse.nodered.org/t/testing-assert-a-message-is-not-sent/40160 "2021-02-01T10:40:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sander76](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sander76/32/35508_2.png) [@sander76](https://discourse.nodered.org/u/sander76)\
**Post date:** [1 February 2021 10:40 UTC](https://discourse.nodered.org/t/testing-assert-a-message-is-not-sent/40160/1 "2021-02-01T10:40:14Z")

</div>

Starting to learn creating nodes and testing them using the `node-red-test-helper` module. (coming from python)

I have a node with multiple outputs. Based on a certain input I want to test whether certain outputs are sending out data (ie. on payload input==1, output1 should be true, output2 should be false).

I know how to test output (using the helper node and calling the `done` function). But I don't know how to test an output is NOT getting data.

Any help appreciated !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 April 2021 10:40 UTC](https://discourse.nodered.org/t/testing-assert-a-message-is-not-sent/40160/2 "2021-04-02T10:40:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
