Skip to content

London | 26-ITP-January | Johnny Vargas | Sprint 3 | 1-implement-and-rewrite-tests #1062

Open
JohnnyBoyV wants to merge 10 commits intoCodeYourFuture:mainfrom
JohnnyBoyV:sprint-3-implement-and-rewrite
Open

London | 26-ITP-January | Johnny Vargas | Sprint 3 | 1-implement-and-rewrite-tests #1062
JohnnyBoyV wants to merge 10 commits intoCodeYourFuture:mainfrom
JohnnyBoyV:sprint-3-implement-and-rewrite

Conversation

@JohnnyBoyV
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I implemented the require code and also rewrote tests using jest.

@JohnnyBoyV JohnnyBoyV added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
Comment on lines +30 to +32
expect(() => getCardValue("1♠")).toThrow("Invalid card");
expect(() => getCardValue("A-Z")).toThrow("Invalid card");
expect(() => getCardValue("Joker")).toThrow("Invalid card");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could consider test also

  • An empty string
  • A string with a valid rank but invalid suit

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 6, 2026
@JohnnyBoyV JohnnyBoyV added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 8, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 8, 2026

Changes are good. Well done.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants