Exemplo n.º 1
0
 it('Should return an empty string', function () {
     var baseDate = new BaseDate();
     expect(baseDate.format('')).to.equal('');
     expect(baseDate.format(null)).to.equal('');
 });
Exemplo n.º 2
0
 it('Should format the date', function () {
     var baseDate = new BaseDate();
     expect(baseDate.format('2014-12-25')).to.equal('12/25/2014');
 });