---
title: assert
category: Node.js
---

    assert(val)
    assert.equal(actual, expected)
    assert.notEqual(a, e)

    assert.deepEqual(a, e)
    assert.notDeepEqual(a, e)

    assert.throws(fn)

### References

- http://nodejs.org/api/assert.html
