This commit is contained in:
Ilya Kantor 2014-11-16 01:40:20 +03:00
parent 962caebbb7
commit 87bf53d076
1825 changed files with 94929 additions and 0 deletions

View file

@ -0,0 +1,13 @@
describe("formatDate", function() {
it("правильно форматирует дату 30.01.14", function() {
assert.equal( formatDate(new Date(2014, 0, 30)), '30.01.14');
});
it("правильно форматирует дату 01.01.01", function() {
assert.equal( formatDate(new Date(2001, 0, 1)), '01.01.01');
});
it("правильно форматирует дату 01.01.00", function() {
assert.equal( formatDate(new Date(2000, 0, 1)), '01.01.00');
});
});