Skip to content

Commit

Permalink
Add a category for Yizkor events
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Nov 12, 2024
1 parent 5d468e2 commit 5d7dc70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const flagToCategory = [
[flags.SHABBAT_MEVARCHIM, 'mevarchim'],
[flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'],
[flags.USER_EVENT, 'user'],
[flags.YIZKOR, 'yizkor'],
] as const;

/**
Expand Down
1 change: 1 addition & 0 deletions test/hebcal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,4 +748,5 @@ test('yikzor', () => {
expect(ev.render('en')).toBe('Yizkor');
expect(ev.render('he')).toBe('יִזְכּוֹר');
expect(ev.render('he-x-NoNikud')).toBe('יזכור');
expect(ev.getCategories()).toEqual(['yizkor']);
});

0 comments on commit 5d7dc70

Please sign in to comment.