fix(seed): Make tests accepts all correct answers (#16627)

the test and challenge seed has changed

Closes #16516
This commit is contained in:
Ahmad Abdolsaheb
2018-02-08 08:47:31 +03:00
committed by mrugesh mohapatra
parent 4a93ae7f39
commit 13f48c47c9

View File

@ -2081,7 +2081,9 @@
" button:hover {", " button:hover {",
" animation-name: background-color;", " animation-name: background-color;",
" animation-duration: 500ms;", " animation-duration: 500ms;",
" /* add your code below this line */",
" ", " ",
" /* add your code above this line */",
" }", " }",
" @keyframes background-color {", " @keyframes background-color {",
" 100% {", " 100% {",
@ -2092,7 +2094,7 @@
"<button>Register</button>" "<button>Register</button>"
], ],
"tests": [ "tests": [
"assert(code.match(/button:hover\\s*?{\\s*?animation-name:\\s*?background-color;\\s*?animation-duration:\\s*?500ms;\\s*?animation-fill-mode:\\s*?forwards;\\s*?}/gi), 'message: <code>button:hover</code> should have a <code>animation-fill-mode</code> property with a value of <code>forwards</code>.');" "assert(code.match(/button\\s*?:\\s*?hover\\s*?{[\\s\\S]*animation-fill-mode\\s*?:\\s*?forwards\\s*?;[\\s\\S]*}/gi) && code.match(/button\\s*?:\\s*?hover\\s*?{[\\s\\S]*animation-name\\s*?:\\s*?background-color\\s*?;[\\s\\S]*}/gi) && code.match(/button\\s*?:\\s*?hover\\s*?{[\\s\\S]*animation-duration\\s*?:\\s*?500ms\\s*?;[\\s\\S]*}/gi), 'message: <code>button:hover</code> should khave a <code>animation-fill-mode</code> property with a value of <code>forwards</code>.');"
], ],
"solutions": [], "solutions": [],
"hints": [], "hints": [],