UNPKG

year-of-rooster

Version:
11 lines (9 loc) 416 B
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); });