Skip to content

London| 26-ITP-Jan| Ebrahim Moqbel | Sprint 3 | Practice-TDD #1233

Closed
Ebrahim-Moqbel wants to merge 1 commit into
CodeYourFuture:mainfrom
Ebrahim-Moqbel:coursework-sprint-3/practice-tdd
Closed

London| 26-ITP-Jan| Ebrahim Moqbel | Sprint 3 | Practice-TDD #1233
Ebrahim-Moqbel wants to merge 1 commit into
CodeYourFuture:mainfrom
Ebrahim-Moqbel:coursework-sprint-3/practice-tdd

Conversation

@Ebrahim-Moqbel

@Ebrahim-Moqbel Ebrahim-Moqbel commented Mar 8, 2026

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

I used the jest test and met the criteria for the following files:
-count.js
-get-ordinal-number.js
-repeat-str.test.js

@Ebrahim-Moqbel Ebrahim-Moqbel 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 8, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Function implementation is correct.
  • Tests are comprehensive
  • Test descriptions are clear

Well done.

Comment on lines +3 to +9
let count =0;
for (let i = 0; i < stringOfCharacters.length; i++) {
if (stringOfCharacters[i] === findCharacter) {
count+=1;
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The spacing around the operators in this code is not consistent.

Have you installed the prettier VSCode extension and enabled "Format on save/paste" on VSCode,
as recommended in https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md
?

If you have enabled "Format on save" but it is not working, it is likely that you haven't assign a formatter for JS file. This could happen if you have zero or multiple extensions that can format .js file.

If you have installed "Prettier" extension. To assign it as the formatter of JS code, you can try:

  1. Use "Format document" to format the JS file. Sometimes, VSCode will ask you to choose a formatter, and you can manually select "Prettier".
  2. Edit settings.json and set Prettier as the default formatter for JS.
    See: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. 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. Complete Volunteer to add when work is complete and all review comments have been addressed. labels Mar 14, 2026
@cjyuan

cjyuan commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Can you fix the Markdown syntax on the last two checked checkboxes in the PR description?

@Ebrahim-Moqbel Ebrahim-Moqbel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 18, 2026
@Ebrahim-Moqbel

Copy link
Copy Markdown
Author

Can you fix the Markdown syntax on the last two checked checkboxes in the PR description?

@Ebrahim-Moqbel

Copy link
Copy Markdown
Author

Thanks for your comment I now believe is complete.

@cjyuan

cjyuan commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

All 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 18, 2026
@illicitonion

Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

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.

3 participants