Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('pretty date', function(){
- var input = { time: 1341279000000, utc_offset: -25200000 },
- expected = 'Monday, July 2nd 2012 6:30:00 PM',
- actual = helpers.prettyDate(input.time, input.utc_offset);
- it('prints a pretty date in the correct time zone', function(){
- expected.should.equal(actual);
- });
- });
Add Comment
Please, Sign In to add comment