mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(curriculum) - set all the tests for step 47 to use matches (#54135)
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ assert.match(code, regex);
|
||||
Your `formInputValuesUpdated` variable should check if `titleInput.value` is not equal to `currentTask.title`, `dateInput.value` is not equal to `currentTask.date`, or `descriptionInput.value` is not equal to `currentTask.description`.
|
||||
|
||||
```js
|
||||
const regex = /const\s+formInputValuesUpdated\s*=\s*titleInput\.value\s*!==\s*currentTask\.title\s*\|\|\s*dateInput\.value\s*!==\s*currentTask\.date\s*\|\|\s*descriptionInput\.value\s*!==\s*currentTask\.description\s*;?/
|
||||
const regex = /const\s+formInputValuesUpdated\s*=\s*titleInput\.value\s*(!==|!=)\s*currentTask\.title\s*\|\|\s*dateInput\.value\s*(!==|!=)\s*currentTask\.date\s*\|\|\s*descriptionInput\.value\s*(!==|!=)\s*currentTask\.description\s*;?/
|
||||
|
||||
assert.match(code, regex);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user