year-of-rooster
Version:
Check if is year of Rooster
11 lines (9 loc) • 416 B
JavaScript
var yearOfRooster = require('./');
var test = require('tape');
test('it should check if a year is year of rooster', function(t) {
t.plan(4);
t.equal(yearOfRooster(1993), true, "1993 is year of rooster");
t.equal(yearOfRooster(1994), false, "1994 is not year of rooster");
t.equal(yearOfRooster(new Date(2005, 0)), true, "2005 is year of rooster");
t.equal(typeof yearOfRooster() === 'boolean', true);
});