Skip to content

Commit cbea897

Browse files
committed
feat(tests): enhance MCPClient tests with additional scenarios and validations
- Added tests for backward compatibility with string URLs and serverUrl alias in MCPClient. - Included tests for request method, error handling, and retry logic in MCPClient. - Expanded fetch functions tests (fetchCalendarEvents, fetchCommitteeReports, fetchPropositions, etc.) to cover optional parameters and response validation. - Introduced tests for new utility functions: generate-news-indexes and generate-sitemap, ensuring proper functionality and XML validation. - Removed outdated verify_implementation.sh script. - Updated vitest.config.js to exclude non-testable scripts from coverage.
1 parent 323de18 commit cbea897

32 files changed

+1798
-4853
lines changed

a604895cbc064ce0832b4b4a362e5c9a.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

js/back-to-top.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

merge_all_dashboards.py

Lines changed: 0 additions & 289 deletions
This file was deleted.

merge_languages.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"generate-news": "node scripts/generate-news-enhanced.js",
2424
"generate-news-indexes": "node scripts/generate-news-indexes.js",
2525
"generate-sitemap": "node scripts/generate-sitemap.js",
26+
"generate-news-backport": "node scripts/generate-news-backport.js",
2627
"htmlhint": "sh -c 'htmlhint *.html; set -- news/*.html; if [ -e \"$1\" ]; then htmlhint \"$@\"; else echo \"No news/*.html files to lint\"; fi'",
2728
"serve": "python3 -m http.server 8080",
2829
"linkcheck": "linkinator http://localhost:8080/ --recurse"

0 commit comments

Comments
 (0)