Sha256: bdac3d364ae2e7499cdf82104331f48b9575155ebbd24a6391eaba6a2bf988cd
Contents?: true
Size: 1.89 KB
Versions: 133
Compression:
Stored size: 1.89 KB
Contents
var meetupDay = require('./meetup'); describe('meetupDay()', function () { it('monteenth of may 2013', function () { expect(meetupDay(2013, 4, 'Monday', 'teenth')).toEqual(new Date(2013, 4, 13)); }); xit('saturteenth of february 2013', function () { expect(meetupDay(2013, 1, 'Saturday', 'teenth')).toEqual(new Date(2013, 1, 16)); }); xit('first tuesday of may 2013', function () { expect(meetupDay(2013, 4, 'Tuesday', '1st')).toEqual(new Date(2013, 4, 7)); }); xit('second monday of april 2013', function () { expect(meetupDay(2013, 3, 'Monday', '2nd')).toEqual(new Date(2013, 3, 8)); }); xit('third thursday of september 2013', function () { expect(meetupDay(2013, 8, 'Thursday', '3rd')).toEqual(new Date(2013, 8, 19)); }); xit('fourth sunday of march 2013', function () { expect(meetupDay(2013, 2, 'Sunday', '4th')).toEqual(new Date(2013, 2, 24)); }); xit('last thursday of october 2013', function () { expect(meetupDay(2013, 9, 'Thursday', 'last')).toEqual(new Date(2013, 9, 31)); }); xit('last wednesday of february 2012', function () { expect(meetupDay(2012, 1, 'Wednesday', 'last')).toEqual(new Date(2012, 1, 29)); }); xit('last wednesday of december 2014', function () { expect(meetupDay(2014, 11, 'Wednesday', 'last')).toEqual(new Date(2014, 11, 31)); }); xit('last sunday of only four week february 2015', function () { expect(meetupDay(2015, 1, 'Sunday', 'last')).toEqual(new Date(2015, 1, 22)); }); xit('first friday of december 2012', function () { expect(meetupDay(2012, 11, 'Friday', '1st')).toEqual(new Date(2012, 11, 7)); }); xit('fifth monday of march 2015', function () { expect(meetupDay(2015, 2, 'Monday', '5th')).toEqual(new Date(2015, 2, 30)); }); xit('nonexistent fifth monday of february 2015', function () { expect(function () { meetupDay(2015, 1, 'Monday', '5th'); }).toThrow(); }); });
Version data entries
133 entries across 133 versions & 1 rubygems