fix(challenge): Updated tests to avoid confusion (#57)
This commit is contained in:
committed by
mrugesh mohapatra
parent
dd046d6a0c
commit
7105507910
@ -2637,25 +2637,25 @@
|
||||
"text":
|
||||
"The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.",
|
||||
"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":
|
||||
"The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.",
|
||||
"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":
|
||||
"The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.",
|
||||
"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":
|
||||
"The <code>content</code> of the <code>heart:before</code> selector should be an empty string.",
|
||||
"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": [],
|
||||
|
Reference in New Issue
Block a user