Skip to content

cjohansen.no

Update on the node.js asserts

I realized that if you want the assert-extras assertions, you probably want the built-in assertions as well.

The repo is updated, and assert-extras now bundles the built-in asserts too, so you don't have to jump through the mixin hoop anytime you want to use it. Now you can simply do:

var assert = require("assert-extras");
assert.ok(true);
assert.isFunction(function () {});

Get it from Gitorious.

Possibly related

2006 - 2012 Christian Johansen Creative Commons License