Skip to content

London | 25 -ITP-May | Dagim Daniel | Sprint 3 | implement and rewrite-test with jest#1473

Open
Dagim-Daniel wants to merge 9 commits into
CodeYourFuture:mainfrom
Dagim-Daniel:coursework/sprint--3-implement-and-rewrite
Open

London | 25 -ITP-May | Dagim Daniel | Sprint 3 | implement and rewrite-test with jest#1473
Dagim-Daniel wants to merge 9 commits into
CodeYourFuture:mainfrom
Dagim-Daniel:coursework/sprint--3-implement-and-rewrite

Conversation

@Dagim-Daniel

Copy link
Copy Markdown

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

all tasks under sprint 3 - implement and rewrite-test with jest has been done

…-card-value add line 37 to 40 and also done with the rewrite tests with jest tasks.
…t of get-card-value add line 37 to 40 and also done with the rewrite tests with jest tasks."

This reverts commit c822d53.
@Dagim-Daniel Dagim-Daniel added 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 Jul 6, 2026
…-card-value adding line 37 to line 40 and i also completed the rewrite-test with jest section - i revert a commit so i work on it again and re- commit it( problem was the jest edited the jason file -version)
@Dagim-Daniel Dagim-Daniel added the 📅 Sprint 3 Assigned during Sprint 3 of this module label Jul 6, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 6, 2026
…fied get-card-value adding line 37 to line 40 and i also completed the rewrite-test with jest section - i revert a commit so i work on it again and re- commit it( problem was the jest edited the jason file -version)"

This reverts commit 927466a.
@Dagim-Daniel Dagim-Daniel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 6, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work on these tasks. The implementations are working, but could be improved a bit more if you follow my comments

function getAngleType(angle) {
// TODO: Implement this function
if (angle>0 && angle<90)
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you remember to format this code?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

i didn't get you, LonMcGregor sorry

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The indentation and organisation of symbols is a bit odd, did you run the formatter in your IDE before committing?

Comment thread Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js Outdated
}

const numvalue = Number(value);
if (numvalue >= 2 && numvalue <= 10) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this if condition need to be here? (Hint: compare it to the earlier if conditions)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

i guess so, because the other if condition was for throw error. with out this if condition it wouldn't give us the the numvalue within this scop

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You already have an if check for >2 and <10, do you need both of them?

@LonMcGregor LonMcGregor 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 Jul 13, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Still a few comments from me. Remember to add the "needs review" label after you make changes

}

const numvalue = Number(value);
if (numvalue >= 2 && numvalue <= 10) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You already have an if check for >2 and <10, do you need both of them?

function getAngleType(angle) {
// TODO: Implement this function
if (angle>0 && angle<90)
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The indentation and organisation of symbols is a bit odd, did you run the formatter in your IDE before committing?

@Dagim-Daniel Dagim-Daniel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 20, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for updating this, I hope it makes sense how it is easier to read the code after these changes

@LonMcGregor LonMcGregor 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 Jul 20, 2026
@Dagim-Daniel

Copy link
Copy Markdown
Author

Thanks for updating this, I hope it makes sense how it is easier to read the code after these changes

yeah, you are right, its easier to read now. thank you

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