Skip to content

Commit

Permalink
Only 3 aliyot on Erev Simchat Torah
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Aug 17, 2023
1 parent 8863b17 commit 60dbcdc
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/leyning",
"version": "7.4.1",
"version": "7.4.2",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"hebcal",
Expand Down Expand Up @@ -55,7 +55,7 @@
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-node-resolve": "^15.2.0",
"@rollup/plugin-terser": "^0.4.3",
"ava": "^5.3.1",
"core-js": "^3.32.0",
Expand Down
20 changes: 19 additions & 1 deletion src/csv.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable require-jsdoc */
import test from 'ava';
import {Writable} from 'stream';
import {HDate, HolidayEvent, RoshChodeshEvent, ParshaEvent, months, flags} from '@hebcal/core';
import {HDate, HolidayEvent, RoshChodeshEvent, ParshaEvent,
HebrewCalendar, months, flags} from '@hebcal/core';
import {writeFullKriyahEvent} from './csv';

class StringWritable extends Writable {
Expand Down Expand Up @@ -99,3 +100,20 @@ test('writeFullKriyahEvent-9av', (t) => {
'', ''];
t.deepEqual(lines, expected);
});

test.skip('writeFullKriyahEvent-SimchatTorah', (t) => {
const events = HebrewCalendar.calendar({
start: new HDate(22, months.TISHREI, 5784),
end: new HDate(23, months.TISHREI, 5784),
il: false,
});
t.is(events.length, 2);
const stream = new StringWritable();
events.forEach((ev) => writeFullKriyahEvent(stream, ev, false));
const lines = stream.toString().split('\r\n');
console.log(lines);
// Erev Simchat Torah
const expected = [
'', ''];
t.deepEqual(lines, expected);
});
4 changes: 1 addition & 3 deletions src/holiday-readings.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,7 @@
"fullkriyah":
{"1":{"p":54,"k":5,"b":"33:1","e":"33:7"},
"2":{"p":54,"k":5,"b":"33:8","e":"33:12"},
"3":{"p":54,"k":5,"b":"33:13","e":"33:17"},
"4":{"p":54,"k":5,"b":"33:18","e":"33:21"},
"5":{"p":54,"k":5,"b":"33:22","e":"33:26"}}},
"3":{"p":54,"k":5,"b":"33:13","e":"33:17"}}},
"Simchat Torah":{
"haft":{"k":"Joshua","b":"1:1","e":"1:18"},
"fullkriyah":
Expand Down

0 comments on commit 60dbcdc

Please sign in to comment.