fix(challenge): Accept more correct solutions for "Use dot notation"

Now accepts either one or two `console.log()` expressions.
pull/18182/head
Samuel Plumppu 2017-02-04 02:10:41 +01:00
parent 41e00fbf13
commit 88b792579f
1 changed files with 3 additions and 3 deletions

View File

@ -83,8 +83,8 @@
"" ""
], ],
"tests": [ "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(/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(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\\.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": [], "solutions": [],
"hints": [], "hints": [],
@ -992,4 +992,4 @@
"translations": {} "translations": {}
} }
] ]
} }