1
0
mirror of synced 2026-02-05 12:38:01 +08:00

v1.6.4 中元节改为农历七月十五;修复Solar的nextMonth超期问题。

This commit is contained in:
6tail
2023-09-01 20:53:28 +08:00
parent 0863bb6371
commit 2c7fa900a6
3 changed files with 27 additions and 17 deletions

View File

@@ -134,3 +134,18 @@ test('25', () => {
})
expect(timeList).toStrictEqual(['1959-12-17 16:00:00']);
});
test('26', () => {
const solar = Solar.fromYmd(2023, 8, 31);
expect(solar.nextMonth(2).toYmd()).toBe('2023-10-31');
});
test('27', () => {
const solar = Solar.fromYmd(2023, 8, 31);
expect(solar.nextYear(2).toYmd()).toBe('2025-08-31');
});
test('28', () => {
const solar = Solar.fromYmd(2023, 8, 31);
expect(solar.nextMonth(6).toYmd()).toBe('2024-02-29');
});