Tell us what’s happening:
I’m stuck with Exercise Tracker Project and I can’t see how should I fix this.
My code seems met with the test descriptions. Can anyone have idea?
This is my status
Your project link(s)
solution: https://replit.com/
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Challenge: Back End Development and APIs Projects - Exercise Tracker
Link to the challenge:
You seem to have two failed tests?
Yes.
I mean, exercise posting is working and my date property is string.
So my code seems to be doing what the test wants and I can’t have any idea to fix my code.
Hey @hbar1st someone seems to have the same problem, I don’t know if his code is ok. But it looks like it has done several checks and almost claims there is something wrong, if you can take a look at it too I will appreciate it.
Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.
Creo que deben corregir el TEST:
“Puedes hacer una petición POST a /api/users/:_id/exercises con datos de formulario, description, duration, y opcionalmente date. Si no se proporciona ninguna fecha, se utilizará la fecha actual.”
Yo hice la prueba y si funciona mi POST pero ese test no me lo pasa, todos los demas si estan OK. Incluso hice la prueba con el link de ustedes y tampoco pasa el test ese.
Enlace(s) de tu proyecto
E…
There was a PR that had a typo which is now fixed. Until it hints production it will fail with TypeError: Date.now(...).substingr is not a function
in the console.
freeCodeCamp:main
← k-rajat19:docs
opened 02:36PM - 03 Oct 22 UTC
Checklist:
- [ ] I have read [freeCodeCamp's contribution guidelines](htt… ps://contribute.freecodecamp.org).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `main` branch of freeCodeCamp.
- [x] I have tested these changes either locally on my machine, or GitPod.
`substr` method is deprecated, this method should not be recommended to use.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
freeCodeCamp:main
← surajrane42:fix/substringTypo
opened 10:24AM - 07 Oct 22 UTC
Checklist:
- [x ] I have read [freeCodeCamp's contribution guidelines](ht… tps://contribute.freecodecamp.org).
- [x ] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x ] My pull request targets the `main` branch of freeCodeCamp.
- [x ] I have tested these changes either locally on my machine, or GitPod.
Closes #47887
1 Like
camperextraordinaire:
The tests should have caught this issue way before now.
That, or eyeballs. But don’t ask me I’m not on the dev team. Not sure why tests didn’t catch it, or which tests should have caught it.
I assume one of the e2e tests should have caught it. I didn’t really check the logs.
https://github.com/freeCodeCamp/freeCodeCamp/actions/runs/3175020474
My code passed today!
Thank you team!
system
Closed
April 29, 2023, 2:40pm
10
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.