|
1 | 1 | describe("getDateAgo", function() { |
2 | 2 |
|
3 | | - it("1 day before 02.01.2015 -> day 1", function() { |
| 3 | + it("1 zi înainte de 02.01.2015 -> day 1", function() { |
4 | 4 | assert.equal(getDateAgo(new Date(2015, 0, 2), 1), 1); |
5 | 5 | }); |
6 | 6 |
|
7 | 7 |
|
8 | | - it("2 days before 02.01.2015 -> day 31", function() { |
| 8 | + it("2 zile înainte de 02.01.2015 -> ziua 31", function() { |
9 | 9 | assert.equal(getDateAgo(new Date(2015, 0, 2), 2), 31); |
10 | 10 | }); |
11 | 11 |
|
12 | | - it("100 days before 02.01.2015 -> day 24", function() { |
| 12 | + it("100 zile înainte de 02.01.2015 -> ziua 24", function() { |
13 | 13 | assert.equal(getDateAgo(new Date(2015, 0, 2), 100), 24); |
14 | 14 | }); |
15 | 15 |
|
16 | | - it("365 days before 02.01.2015 -> day 2", function() { |
| 16 | + it("365 zile înainte de 02.01.2015 -> ziua 2", function() { |
17 | 17 | assert.equal(getDateAgo(new Date(2015, 0, 2), 365), 2); |
18 | 18 | }); |
19 | 19 |
|
20 | | - it("does not modify the given date", function() { |
| 20 | + it("nu modifică date-ul dat", function() { |
21 | 21 | let date = new Date(2015, 0, 2); |
22 | 22 | let dateCopy = new Date(date); |
23 | 23 | getDateAgo(dateCopy, 100); |
|
0 commit comments