Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more tests and refactor GildedRose class #14

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Ropler6
Copy link

@Ropler6 Ropler6 commented Nov 10, 2024

Added more tests in gilded-rose.spec.ts to fully verify the functionality of the app.
Refactored GildedRose class by rewriting updateQuality() and by adding an auxiliary function (handleBackstagePasses) and two auxiliary attributes (increasingByOne and QUALITY_LIMIT).
Wrote content into test.yml for CI.

Signed-off-by: Ropler6 <[email protected]>
Rework for-loop indexes and rewrite expected values for readability
Added QUALITY_LIMIT readonly attribute, increasingByOne array, handleBackstagePasses() auxiliary function and rewrote updateQuality()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant