-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tests): Adds cases for '.pt' READMEs
- Loading branch information
1 parent
a07b600
commit e4bfb5a
Showing
5 changed files
with
228 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
lib/__tests__/__fixtures__/challenge-form-question-no-heading/README.pt.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Challenge tipo form de prueba | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | ||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | ||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu | ||
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
## Perguntas | ||
|
||
#### What is the meaning of the universe? | ||
|
||
Texto complementarion de la pregunta. | ||
|
||
#### Solução | ||
|
||
* `multiline`: true | ||
|
||
### A question |
18 changes: 18 additions & 0 deletions
18
lib/__tests__/__fixtures__/challenge-form-with-multiline-question/README.pt.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Challenge tipo form de prueba | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | ||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | ||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu | ||
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
## Perguntas | ||
|
||
### What is the meaning of the universe? | ||
|
||
Texto complementarion de la pregunta. | ||
|
||
#### Solução | ||
|
||
* `multiline`: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Challenge tipo form de prueba | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | ||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | ||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu | ||
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
## Perguntas | ||
|
||
### What is the meaning of the universe? | ||
|
||
Texto complementarion de la pregunta. | ||
|
||
#### Solução | ||
|
||
* `value`: 42 | ||
|
||
### A question with multiple choices | ||
|
||
#### Opções | ||
|
||
1. A | ||
2. B | ||
3. C | ||
|
||
#### Solução | ||
|
||
* `value`: 2 | ||
|
||
### An optional question with multiple choices | ||
|
||
#### Opções | ||
|
||
1. A | ||
2. B | ||
3. C | ||
|
||
#### Solução | ||
|
||
* `value`: 2 | ||
* `required`: false | ||
|
||
### Cuáles de las siguientes crees que son correctas? | ||
|
||
#### Opções | ||
|
||
1. aaa | ||
2. bbb | ||
3. ccc | ||
|
||
#### Solução | ||
|
||
* `value`: 1,2 | ||
|
||
### Anything else to say? | ||
|
||
¿Alguna cosa más que agregar? | ||
|
||
#### Solução | ||
|
||
* `required`: false | ||
|
||
### A required question without validation | ||
|
||
#### Solução | ||
|
||
* `required`: true | ||
|
||
### A question with custom validation | ||
|
||
#### Solução | ||
|
||
* `validate`: | ||
```js | ||
(value) => { | ||
if (!value.startWith('https://blah.blah/')) { | ||
return 'Respuesta debe comenzr con https://blah.blah/'; | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters