forked from akivajgordon/tikkun.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Navigation: Start writing unit tests for TopBarTracker
And fix some bugs that they caught. I still need to add more tests
- Loading branch information
Showing
7 changed files
with
309 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"js": true, | ||
"ts": "module" | ||
}, | ||
"timeout": "30s", | ||
"files": [ | ||
"src/**/*.test.*" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
# Snapshot report for `src/view-model/navigation/top-bar-model.test.ts` | ||
|
||
The actual snapshot is saved in `top-bar-model.test.ts.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## renders for the beginning of בראשית | ||
|
||
> Snapshot 1 | ||
{ | ||
aliyahRange: [ | ||
'ראשון', | ||
], | ||
currentRun: '2024-10-26:shacharis,main', | ||
nextLink: { | ||
label: 'ראש חודש חשון שחרית', | ||
targetRun: '2024-11-01:shacharis,main', | ||
}, | ||
previousLink: { | ||
label: 'שמחת תורה שחרית', | ||
targetRun: '2024-10-25:shacharis,main', | ||
}, | ||
relatedRuns: [ | ||
{ | ||
label: 'פרשת בראשית', | ||
targetRun: '2024-10-26:shacharis,main', | ||
}, | ||
{ | ||
label: 'הפטרה', | ||
targetRun: '2024-10-26:shacharis,haftara', | ||
}, | ||
], | ||
} | ||
|
||
## renders for שמחת תורה | ||
|
||
> Snapshot 1 | ||
{ | ||
aliyahRange: [ | ||
'רביעי', | ||
], | ||
currentRun: '2024-10-25:shacharis,main', | ||
nextLink: { | ||
label: 'פרשת בראשית שחרית', | ||
targetRun: '2024-10-26:shacharis,main', | ||
}, | ||
previousLink: { | ||
label: 'שמיני עצרת מעריב', | ||
targetRun: '2024-10-24:maariv,main', | ||
}, | ||
relatedRuns: [ | ||
{ | ||
label: 'שמחת תורה', | ||
targetRun: '2024-10-25:shacharis,main', | ||
}, | ||
{ | ||
label: 'חתן בראשית', | ||
targetRun: '2024-10-25:shacharis,last-aliyah', | ||
}, | ||
{ | ||
label: 'מפטיר', | ||
targetRun: '2024-10-25:shacharis,maftir', | ||
}, | ||
{ | ||
label: 'הפטרה', | ||
targetRun: '2024-10-25:shacharis,haftara', | ||
}, | ||
], | ||
} | ||
|
||
## שקלים / ראש חודש as פרשה | ||
|
||
> Snapshot 1 | ||
{ | ||
aliyahRange: [ | ||
'ראשון', | ||
'שני', | ||
], | ||
currentRun: '2025-03-01:shacharis,main', | ||
nextLink: { | ||
label: 'פרשת תצוה שחרית', | ||
targetRun: '2025-03-08:shacharis,main', | ||
}, | ||
previousLink: { | ||
label: 'ראש חודש אדר שחרית', | ||
targetRun: '2025-02-28:shacharis,main', | ||
}, | ||
relatedRuns: [ | ||
{ | ||
label: 'פרשת תרומה', | ||
targetRun: '2025-03-01:shacharis,main', | ||
}, | ||
{ | ||
label: 'שביעי', | ||
targetRun: '2025-03-01:shacharis,last-aliyah', | ||
}, | ||
{ | ||
label: 'מפטיר', | ||
targetRun: '2025-03-01:shacharis,maftir', | ||
}, | ||
{ | ||
label: 'הפטרה', | ||
targetRun: '2025-03-01:shacharis,haftara', | ||
}, | ||
], | ||
} | ||
|
||
## renders for חול המועד סוכות | ||
|
||
> Snapshot 1 | ||
{ | ||
aliyahRange: [ | ||
'ראשון', | ||
'שלישי', | ||
], | ||
currentRun: '2024-10-22:shacharis,main', | ||
nextLink: { | ||
label: 'סוכות ז׳ (הושענא רבה) שחרית', | ||
targetRun: '2024-10-23:shacharis,main', | ||
}, | ||
previousLink: { | ||
label: 'סוכות חול המועד יום ג׳ שחרית', | ||
targetRun: '2024-10-21:shacharis,main', | ||
}, | ||
relatedRuns: [ | ||
{ | ||
label: 'סוכות חול המועד יום ד׳', | ||
targetRun: '2024-10-22:shacharis,main', | ||
}, | ||
], | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.