fix(challenge): Accept more correct solutions for "Use dot notation"
Now accepts either one or two `console.log()` expressions.pull/18182/head
parent
41e00fbf13
commit
88b792579f
|
@ -83,8 +83,8 @@
|
|||
""
|
||||
],
|
||||
"tests": [
|
||||
"assert(code.match(/console\\.log\\(dog\\.name\\)/g), 'message: Your code should use a <code>console.log</code> statement to print the value for the <code>name</code> property of the <code>dog</code> object.');",
|
||||
"assert(code.match(/console\\.log\\(dog\\.numLegs\\)/g), 'message: Your code should use a <code>console.log</code> statement to print the value for the <code>numLegs</code> property of the <code>dog</code> object.');"
|
||||
"assert(/console.log\\(.*dog\\.name.*\\)/g.test(code), 'message: Your should use <code>console.log</code> to print the value for the <code>name</code> property of the <code>dog</code> object.');",
|
||||
"assert(/console.log\\(.*dog\\.numLegs.*\\)/g.test(code), 'message: Your should use <code>console.log</code> to print the value for the <code>numLegs</code> property of the <code>dog</code> object.');"
|
||||
],
|
||||
"solutions": [],
|
||||
"hints": [],
|
||||
|
@ -992,4 +992,4 @@
|
|||
"translations": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue