fix(challenge): Updated tests to avoid confusion (#57)

This commit is contained in:
Prateek Surana
2018-06-27 16:34:32 +05:30
committed by mrugesh mohapatra
parent dd046d6a0c
commit 7105507910

View File

@ -2637,25 +2637,25 @@
"text": "text":
"The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.", "The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.",
"testString": "testString":
"assert(code.match(/\\.heart:after\\s*?{\\s*?background-color:\\s*?pink;/gi), 'The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.');" "assert(code.match(/\\.heart:after\\s*?{\\s*?background-color\\s*?:\\s*?pink\\s*?;/gi), 'The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.');"
}, },
{ {
"text": "text":
"The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.", "The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.",
"testString": "testString":
"assert(code.match(/border-radius:\\s*?50%/gi).length == 2, 'The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.');" "assert(code.match(/border-radius\\s*?:\\s*?50%/gi).length == 2, 'The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.');"
}, },
{ {
"text": "text":
"The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.", "The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.",
"testString": "testString":
"assert(code.match(/transform:\\s*?rotate\\(-45deg\\)/gi), 'The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.');" "assert(code.match(/transform\\s*?:\\s*?rotate\\(\\s*?-45deg\\s*?\\)/gi), 'The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.');"
}, },
{ {
"text": "text":
"The <code>content</code> of the <code>heart:before</code> selector should be an empty string.", "The <code>content</code> of the <code>heart:before</code> selector should be an empty string.",
"testString": "testString":
"assert(code.match(/\\.heart:before\\s*?{\\s*?content:\\s*?(\"|')\\1;/gi), 'The <code>content</code> of the <code>heart:before</code> selector should be an empty string.');" "assert(code.match(/\\.heart:before\\s*?{\\s*?content\\s*?:\\s*?(\"|')\\1\\s*?;/gi), 'The <code>content</code> of the <code>heart:before</code> selector should be an empty string.');"
} }
], ],
"solutions": [], "solutions": [],