aboutsummaryrefslogtreecommitdiffhomepage
path: root/node_modules/better-assert/example.js
blob: 688c29e8ace0b4742fdb323cc2e7a45bc835992e (plain)
1
2
3
4
5
6
7
8
9
10
var assert = require('./');

test();

function test() {
  var user = { name: 'tobi' };
  assert('tobi' == user.name);
  assert('number' == typeof user.age);
}