open-spaced-repetition / ts-fsrs

ts-fsrs is a versatile package based on TypeScript that supports ES modules, CommonJS, and UMD.
https://open-spaced-repetition.github.io/ts-fsrs/
MIT License
216 stars 22 forks source link

Fix/Grades allowed be modified. #73

Closed ishiko732 closed 8 months ago

ishiko732 commented 8 months ago

Grades array was being modified, which is not allowed.

github-actions[bot] commented 8 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 100% 295/295
🟒 Branches 100% 107/107
🟒 Functions 98.41% 62/63
🟒 Lines 100% 287/287

Test suite run success

69 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from d3fde0c2e6681e9a901934f85ac6c3f87118de8f