Skip to content

Scotland | ITP JAN-2026 | Tuan Nguyen | Sprint 3 | 1-Implement-and-rewrite-test#1259

Open
Jacknguyen4438 wants to merge 7 commits intoCodeYourFuture:mainfrom
Jacknguyen4438:Jest-test-case-sprint-3A
Open

Scotland | ITP JAN-2026 | Tuan Nguyen | Sprint 3 | 1-Implement-and-rewrite-test#1259
Jacknguyen4438 wants to merge 7 commits intoCodeYourFuture:mainfrom
Jacknguyen4438:Jest-test-case-sprint-3A

Conversation

@Jacknguyen4438
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 have don't basic understand on how to correctly writing normal test and jest test frame work, I am waiting for this work to be review.

Questions

I have no question.

@Jacknguyen4438 Jacknguyen4438 changed the title Scotland | ITP JAN-2026 | Tuan Nguyen | Sprint 3 | 1- Implement-and-rewrite-test Scotland | ITP JAN-2026 | Tuan Nguyen | Sprint 3 | 1-Implement-and-rewrite-test Mar 13, 2026
@Jacknguyen4438 Jacknguyen4438 added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Mar 13, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

  • Function implementation is correct.

Describing tests can be quite challenging. Feel free learn from AI how to keep the test descriptions concise.

@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 15, 2026
@Jacknguyen4438
Copy link
Author

@cjyuan Thank you for the review I have making change base on your PR review. It have been finish and ready to be reviewed again.

@Jacknguyen4438 Jacknguyen4438 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 24, 2026
@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 24, 2026
@Jacknguyen4438
Copy link
Author

@cjyuan Hello, thank you for the time reading this PR comment. I have finished making change for this PR. If I have make another mistake please let know

@Jacknguyen4438 Jacknguyen4438 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 25, 2026
let rank = card.slice(0, -1);
let suit = card.slice(-1);
if (
typeof card !== "string" ||
Copy link
Contributor

@cjyuan cjyuan Mar 25, 2026

Choose a reason for hiding this comment

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

Why check card again on line 49? The code on line 42 already checked its value.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for the feed pack, I see I make a mistake to double check the card value type I will fix it right away

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 25, 2026
@Jacknguyen4438
Copy link
Author

@cjyuan Thank you for your review I have make some change for this branch and is ready to be review again.

@Jacknguyen4438 Jacknguyen4438 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 26, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 26, 2026

Changes look good.

@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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 26, 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. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants