Skip to content

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

Open
Dagim-Daniel wants to merge 7 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 7 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?

// TODO: Implement this function
numerator = Math.abs(numerator);
denominator = Math.abs(denominator);
if (numerator<denominator)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could this if condition be simplified?

}

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)

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants