Commit Graph

171 Commits

Author SHA1 Message Date
Abdelilah 5f0efbfac6 fix(tests): Fix if (0) bug in piscine condition exercises 2023-10-19 15:15:14 +01:00
Michele Sessa b3c3e3205a feat(animals): add more properties and methods to improve the exercise 2023-10-10 11:50:47 +02:00
Michele Sessa 32f8424d81 docs(animals): fix typos and make subject more clear 2023-10-10 11:50:47 +02:00
Michele Sessa 9dea49a808 feat(animals): add new exercise subject and tests 2023-10-10 11:50:47 +02:00
lee ccd119c098 fix(entrypoint): correct path to the exercise that is being tested 2023-08-17 18:12:03 +01:00
lee 93135cc76e fix(entrypoint): correct file name 2023-08-17 18:12:03 +01:00
lee 76e4a02339 refactor(code-editor): add CODE_EDITOR_ONLY_RUN to test images, allowing to run code in the code editor if enabled 2023-08-17 18:12:03 +01:00
nprimo 29f438e5a9 feat(for-each): improve test
- make Array.prototype.map unavailable for solution
2023-06-01 14:18:00 +01:00
nprimo 029fcd4a02 feat(for-each): improve test
- add check for returned value(s)
2023-06-01 14:18:00 +01:00
nprimo c120b69619 feat(tell-me-who): improve test
- make error message "actual" and "expected" coherent
2023-05-15 15:23:33 +01:00
davhojt d4f7b1051a fix(broken-promise): call correct function name from broken-promise solution 2023-04-27 13:54:28 +00:00
davhojt cd049bcb92 feat(broken-promise): add test 2023-04-27 13:54:28 +00:00
nprimo a2dfe4449c refactor(kept-promise): update functions with no arguments 2023-03-13 15:14:58 +00:00
nprimo 7553d3d994 feat(kept-promise): add test 2023-03-13 15:14:58 +00:00
nprimo 026764535e feat(kept-promise): add subject 2023-03-13 15:14:58 +00:00
sagarishere bfdc6b86d9 Reference link returns 404
The reference links returns 404. There is nothing in wayback machine also about the reference link.

I propose if the proposal is rejected, find a working reference link to put.
2023-03-10 19:38:38 +00:00
eslopfer 91a37b1a2d test(sunny-sunday): rename test 2023-01-30 08:14:36 +00:00
eslopfer 119f624f44 refactor(bloody-sunday): replace bloody for sunny 2023-01-30 08:14:36 +00:00
eslopfer af780cabea
DEV-4309 race bring issue from public (#1748)
* chore(test): restore test.mjs to how it was before

* chore(race_test): remove comments
2023-01-30 07:25:13 +00:00
davhojt a08e196886
fix(race_test.js): ensure Promise.race is available for test.mjs
race_test.js set it to undefined
this commit comments out the offending line
@eslopfer is working on a fix on branch: DEV-4309-race-bring-issue-from-public
2023-01-25 09:45:07 +02:00
nprimo 8d76f63f5c feat(veterinary): add tests 2023-01-02 09:45:50 +01:00
eslopfer 2cc7a8a432
Dev 3747 new exercise about handling different http request methods (#1624)
* docs(piscine-js): add description for the subject uninvited

* docs(uninvited.mjs): modify name in example

* docs(uninvited): modify example

* test(uninvited_test): add preliminary tests

* fix(uninvited_test): export variable tests

* chore(uninvited): run prettier

* test(uninvited): write test to check for invalid status code

* test(uninvited): write test to check for invalid content type

* chore(uninvited): prettier

* test(uninvited): add test to check if server failed

* test(uninvited): export tests

* test(uninvited): freeze tests to avoid tampering

* test(uninvited): remove unused import

* test(uninvited): remove unused parameter

* test(uninvited): catch rejected promise

* test(uninvited): return boolean with result of creating file

* test(uninvited): fail if trying to write to an existing file, add flag

* test(uninvited): write test to check file is created

* test(uninvited): fix wrong path

* test(uninvited): rename function for accuracy

* test(uninvited): dry code

* test(uninvited): rename functions for consistency

* test(uninvited): test request body on success

* test(uninvited): kill server before if statement

* docs(uninvited): rephrase for conciseness

* debug(uninvited): Working up to test 4

* test(uninvited): working tests for the subject

* chore(uninvited): prettier

* chore(uninvited): clean-up, remove extra lines and redundant parameter

* tests(uninvited): replace undefined by constant value

* test(uninvited): add test to check content of file

* chore(uninvited): remove redundant assignment

* fix(uninvited): remove yarn.lock

* chore(uninvited): remove console log

* docs(uninvited): specify what to do when the file already exists

* fix(uninvited): revert gitignore

* fix(test): restore unused import

* docs(uninvited): add link on how to read POST data from a request

* docs(uninvited): remove mention to alcohol

* test(uninvited): remove unused import

* fix(gitignore): add new line at end of file

* docs(uninvited): make example more neutral
2022-12-28 11:51:07 +00:00
Michele Sessa c53584ed35 docs(gatecrashers): remove non neutral content 2022-12-19 18:42:07 +00:00
Michele Sessa e2a8dc2bbd refactor(gatecrashers): remove code repetition, consistent use of eq and fail for test checks 2022-12-09 19:25:58 +00:00
Michele Sessa 52c167a390 refactor(gatecrashers): use fs/promises for file access in tests, remove unused imports 2022-12-09 19:25:58 +00:00
Michele Sessa e3e7058507 feat(gatecrashers): add test names, start/kill server for each test, add test for file created and POST answers 2022-12-09 19:25:58 +00:00
Michele Sessa 9a2a1b7e9d feat(gatecrashers): add a new exercise to js node quest 2022-12-09 19:25:58 +00:00
nprimo de95b3b572 refactor(friend-support): improve single test clarity
Rename test functions to explicit what is being tested
2022-12-05 16:34:12 +00:00
nprimo ab38fc622a refactor(friend-support): start and kill server for each test 2022-12-05 16:34:12 +00:00
nprimo d3fa6a5355 feat(friend-support): add random factor to tests 2022-12-05 16:34:12 +00:00
nprimo 446924e348 refactor(friend-support): implement suggested changes
- remove unused import statements and variables
- improve variables naming
- deconstruct objects used as inputs
2022-12-05 16:34:12 +00:00
nprimo e2ece47510 feat(Dockerfile): update apline version use
Update alpine version used to build Docekr Container to have node
v18.x to be able to use fetch
2022-12-05 16:34:12 +00:00
nprimo 380ad0dc3e feat(friend-support_test): update tests 2022-12-05 16:34:12 +00:00
nprimo 50c73c0af3 feat(friend-support): add draft test
- currently working only with `guests` provided directory
in public/js/tests dir -> test must be able to get `guests` dir
from student repo
- need to check if there are more cases to test
2022-12-05 16:34:12 +00:00
nprimo f179d6e09f feat(tests): update script to use fetch in node tests 2022-12-05 16:34:12 +00:00
nprimo c0d3cddadc fix(keycodes-symphony-dom test): redefine function 2022-11-15 10:35:54 +00:00
nprimo 2f4900d8d2 test(primitives): Add new tests to check if variables are constant 2022-09-02 12:09:04 +01:00
nprimo ec55a11e80 test(declarations): Add new tests to check if variables are constat 2022-09-02 12:09:04 +01:00
Christopher Fremond 92294a7f4d
Update bring-it-to-life-dom_test.mjs
remving the comment I added for demo purposes
2022-08-08 10:49:24 +01:00
Christopher Fremond 5cca789fd1
Update bring-it-to-life-dom_test.mjs
adding a comment to trigger a pull for testing the runner
2022-07-29 12:26:41 +01:00
Christopher Fremond 88c3cc52a9
Update bring-it-to-life-dom_test.mjs
removing a comment to trigger an update
2022-07-27 16:04:37 +01:00
Christopher Fremond c726f13e09
Update bring-it-to-life-dom_test.mjs
Adding a comment to trigger an update
2022-07-27 15:38:59 +01:00
Christopher Fremond 61e9bcda0f
Update bring-it-to-life-dom_test.mjs
reformatting to test an update
2022-07-22 16:33:13 +01:00
Christopher Fremond 2d0a9a04c7
Update bring-it-to-life-dom_test.mjs
additional modification requested by Anthony (JPS)
2022-07-20 22:35:11 +01:00
Christopher Fremond 5dbc369084
Update bring-it-to-life-dom_test.mjs
Modification asked by Anthony for immediate update onsite (JPS)
2022-07-20 06:08:36 +01:00
Christopher Fremond c8e0689e1a
Update bring-it-to-life-dom_test.mjs
testing the modification of the image
2022-07-19 17:16:21 +01:00
Clément d3a3888d53
Remove unescessary test for JS files 2022-07-19 16:22:10 +01:00
Clément 722e7b670a
Add safety semicolon 2022-07-18 17:53:22 +01:00
Clement Denis 4c65e9e273 fix(js): replace base64 url trick by temp file
this fix some tests with new version of nodejs
2022-07-16 00:01:43 +01:00
Clement Denis 8573f049f2 Create a copy of the dom tests to js image 2022-07-11 22:14:12 +01:00