mirror of
https://github.com/quantum5/qcal.git
synced 2025-07-27 03:34:11 -04:00
common: fix formatHaab tests
This commit is contained in:
parent
df24ecd8ec
commit
fc6bc47f16
|
@ -92,16 +92,16 @@ describe('jdnTzolkin', () => {
|
||||||
|
|
||||||
describe('formatHaab', () => {
|
describe('formatHaab', () => {
|
||||||
it('formats normal month and day', () => {
|
it('formats normal month and day', () => {
|
||||||
expect(formatHaab(1, 5)).toBe('5 Pop');
|
expect(formatHaab({month: 1, day: 5})).toBe('5 Pop');
|
||||||
expect(formatHaab(7, 12)).toBe('12 Yaxkʼin');
|
expect(formatHaab({month: 7, day: 12})).toBe('12 Yaxkʼin');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('formats Wayeb month', () => {
|
it('formats Wayeb month', () => {
|
||||||
expect(formatHaab(19, 4)).toBe('4 Wayebʼ');
|
expect(formatHaab({month: 19, day: 4})).toBe('4 Wayebʼ');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('formats zero day', () => {
|
it('formats zero day', () => {
|
||||||
expect(formatHaab(3, 0)).toBe('0 Sip');
|
expect(formatHaab({month: 3, day: 0})).toBe('0 Sip');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue