-
-
Notifications
You must be signed in to change notification settings - Fork 125
fix(challenges): change test for template literals challenge #37
fix(challenges): change test for template literals challenge #37
Conversation
The original test was too rigid, and many users were forced to use one solution, usually map, to complete the challenge. The test is changed here to allow for multiple solutions to the problem, including the use of either single or double quotes when naming a class. BREAKING CHANGE: None
Looks good, thanks! |
@beaucarnes, thanks for the review and merge! |
Test still doesn't pass for me when using arr[0], arr[1] and arr[2] as the templates within`` |
@numoonchld, yes, you're right. This fix was just merged yesterday, so it will take a little while for the live site to be updated to include it. We'll get on it soon! |
thank you |
The original test was too rigid, and many users were forced to use one solution, usually map, to complete the challenge. The test is changed here to allow for multiple solutions to the problem, including the use of either single or double quotes when naming a class. BREAKING CHANGE: None
The original test was too rigid, and many users were forced to use one solution, usually map, to complete the challenge. The test is changed here to allow for multiple solutions to the problem, including the use of either single or double quotes when naming a class. BREAKING CHANGE: None
# [3.0.0](v2.0.0...v3.0.0) (2018-06-29) ### Bug Fixes * **challenge:** Fixed the typo for automatically ([#48](#48)) ([dd046d6](dd046d6)) * **challenge:** Updated tests to avoid confusion ([#57](#57)) ([7105507](7105507)) * **challenges:** change test for template literals challenge ([#37](#37)) ([4b1c5eb](4b1c5eb)) * **challenges:** cherry pick pr 17664 & 17672 from main repo ([#52](#52)) ([2375d0c](2375d0c)) * **challenges:** fixed telephone number validator project ([#53](#53)) ([2b034e2](2b034e2)), closes [#47](#47) * **challenges:** fixed typo in css-grid.json ([#46](#46)) ([e74192e](e74192e)) * **challenges:** grammar fix in css-grid auto-fit challenge ([#60](#60)) ([a6a0266](a6a0266)) * **challenges:** Typo errors ([#39](#39)) ([0c0702d](0c0702d)) * **challenges:** update regular expression that fails ([#56](#56)) ([9fa5907](9fa5907)), closes [#55](#55) ### BREAKING CHANGES * **challenges:** None
# [3.0.0](v2.0.0...v3.0.0) (2018-06-29) ### Bug Fixes * **challenge:** Fixed the typo for automatically ([#48](#48)) ([dd046d6](dd046d6)) * **challenge:** Updated tests to avoid confusion ([#57](#57)) ([7105507](7105507)) * **challenges:** change test for template literals challenge ([#37](#37)) ([4b1c5eb](4b1c5eb)) * **challenges:** cherry pick pr 17664 & 17672 from main repo ([#52](#52)) ([2375d0c](2375d0c)) * **challenges:** fixed telephone number validator project ([#53](#53)) ([2b034e2](2b034e2)), closes [#47](#47) * **challenges:** fixed typo in css-grid.json ([#46](#46)) ([e74192e](e74192e)) * **challenges:** grammar fix in css-grid auto-fit challenge ([#60](#60)) ([a6a0266](a6a0266)) * **challenges:** Typo errors ([#39](#39)) ([0c0702d](0c0702d)) * **challenges:** update regular expression that fails ([#56](#56)) ([9fa5907](9fa5907)), closes [#55](#55) ### BREAKING CHANGES * **challenges:** None
# [3.0.0](freeCodeCamp/curriculum@v2.0.0...v3.0.0) (2018-06-29) ### Bug Fixes * **challenge:** Fixed the typo for automatically ([freeCodeCamp#48](freeCodeCamp#48)) ([dd046d6](freeCodeCamp@dd046d6)) * **challenge:** Updated tests to avoid confusion ([freeCodeCamp#57](freeCodeCamp#57)) ([7105507](freeCodeCamp@7105507)) * **challenges:** change test for template literals challenge ([freeCodeCamp#37](freeCodeCamp#37)) ([4b1c5eb](freeCodeCamp@4b1c5eb)) * **challenges:** cherry pick pr 17664 & 17672 from main repo ([freeCodeCamp#52](freeCodeCamp#52)) ([2375d0c](freeCodeCamp@2375d0c)) * **challenges:** fixed telephone number validator project ([freeCodeCamp#53](freeCodeCamp#53)) ([2b034e2](freeCodeCamp@2b034e2)), closes [freeCodeCamp#47](freeCodeCamp#47) * **challenges:** fixed typo in css-grid.json ([freeCodeCamp#46](freeCodeCamp#46)) ([e74192e](freeCodeCamp@e74192e)) * **challenges:** grammar fix in css-grid auto-fit challenge ([freeCodeCamp#60](freeCodeCamp#60)) ([a6a0266](freeCodeCamp@a6a0266)) * **challenges:** Typo errors ([freeCodeCamp#39](freeCodeCamp#39)) ([0c0702d](freeCodeCamp@0c0702d)) * **challenges:** update regular expression that fails ([freeCodeCamp#56](freeCodeCamp#56)) ([9fa5907](freeCodeCamp@9fa5907)), closes [freeCodeCamp#55](freeCodeCamp#55) ### BREAKING CHANGES * **challenges:** None
hi there it has been 13 days since update but i am having the same issues or rather omore. i will post the code here if that is ok. ----- start of code ----- // change code below this line // attempt 1 - invalid regular expression flags // attempt 2 - invalid regular expression flags //attempt 3 - invalid regular expression flags ----- end of code ----- |
my attempts //2nd |
@DecaDoesRust @thevenice see issue #135 |
So youre saying that '/' this character mighy be the problem, then what should i use to display ? And pass this test. |
@thevenice I'm saying the tests are wrong |
What should i do know |
@thevenice it is not possible to pass the third test at the moment as the test is broken, however, looking at what you posted in your examples it would fail anyway as you are not using template literals. The lesson could do with improvement as it introduces multiple things at once and doesnt spend enough time making clear what a template literal is. I'll make some edits to clarify the lesson. I think reading this MDN page MDN:Tempate Literals would help you a lot. Follow #135 to see when the issues are resolved and you can come back to the challenge once it is fixed. |
Dude you really didn't know that back ticks didn't work on comments |
If you have time just look this pictures both the code are working in chrome console but not in FCC. |
Pre-Submission Checklist
dev
branch of curriculum.fix/
,feature/
, ortranslate/
(e.g.fix/signin-issue
)npm test
. Usegit commit --amend
to amend any fixes.Type of Change
Checklist:
Closes freeCodeCamp/freeCodeCamp#16358
Description
The original test was too rigid, and many users were forced to use one solution, usually map, to
complete the challenge. The test is changed here to allow for multiple solutions to the problem,
including the use of either single or double quotes when naming a class.
Here's a link to regexr with the new regex test and different solutions user's can submit: https://regexr.com/3rdvo
BREAKING CHANGE:
None