---
title: assert
category: Node.js
layout: 2017/sheet
---

### Assertions

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

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

```js
assert.throws(fn)
```

### References

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