UNPKG

robb

Version:

Simple type checker in JavaScript.

25 lines (20 loc) 359 B
// Load ‘Robb.js’ var Robb = require('../src/robb.js'); /** * Test ‘isPositive’ * * @param {object} test */ exports.isPositive = function(test) { var positive = [ 1, 2, 3, 4 ]; positive.forEach(function(num) { var result = Robb.isPositive( num ); test.strictEqual( result, true ); }); test.done(); };