You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
215 B

2 years ago
  1. var test = require('tape');
  2. var defined = require('../');
  3. test('falsy', function (t) {
  4. t.plan(1);
  5. var opts = { y : false, w : 4 };
  6. var x = defined(opts.x, opts.y, opts.w, 8);
  7. t.equal(x, false);
  8. });