Skip to content

Commit 32682bb

Browse files
Merge pull request #781 from ossf/lab-template-tests
Add hint tests to lab template
2 parents 1a8e69f + 53296ff commit 32682bb

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

docs/labs/template.js

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,41 @@ info =
33
hints: [
44
{
55
present: "initial",
6-
text: "The term 'initial' is not part of the answer."
6+
text: "The term 'initial' is not part of the answer.",
7+
examples: [
8+
[ 'initial', ],
9+
],
710
},
811
{
912
present: "unknown",
10-
text: "Unknown is not part of the answer."
13+
text: "Unknown is not part of the answer.",
14+
examples: [
15+
[ 'unknown', ],
16+
],
1117
},
1218
{
1319
absent: String.raw`EXPECTED`,
14-
text: "The word 'EXPECTED' is expected."
20+
text: "The word 'EXPECTED' is expected.",
21+
examples: [
22+
[ '', ],
23+
[ 'fiddly', ],
24+
],
1525
},
1626
{
1727
present: "initial",
1828
index: 1,
19-
text: "The term 'initial' is not part of the answer."
29+
text: "The term 'initial' is not part of the answer.",
30+
examples: [
31+
[ null, 'initial', ],
32+
],
2033
},
2134
{
2235
absent: String.raw`EXPECTED`,
2336
index: 1,
24-
text: "The word 'EXPECTED' is expected."
37+
text: "The word 'EXPECTED' is expected.",
38+
examples: [
39+
[ null, 'not-here', ],
40+
],
2541
},
2642
],
2743
expected: [

0 commit comments

Comments
 (0)