Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit 7105507

Browse files
prateek3255raisedadead
authored andcommitted
fix(challenge): Updated tests to avoid confusion (#57)
1 parent dd046d6 commit 7105507

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

challenges/01-responsive-web-design/applied-visual-design.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,25 +2637,25 @@
26372637
"text":
26382638
"The <code>background-color</code> property of the <code>heart:after</code> selector should be pink.",
26392639
"testString":
2640-
"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.');"
2640+
"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.');"
26412641
},
26422642
{
26432643
"text":
26442644
"The <code>border-radius</code> of the <code>heart:after</code> selector should be 50%.",
26452645
"testString":
2646-
"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%.');"
2646+
"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%.');"
26472647
},
26482648
{
26492649
"text":
26502650
"The <code>transform</code> property for the <code>heart</code> class should use a <code>rotate()</code> function set to -45 degrees.",
26512651
"testString":
2652-
"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.');"
2652+
"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.');"
26532653
},
26542654
{
26552655
"text":
26562656
"The <code>content</code> of the <code>heart:before</code> selector should be an empty string.",
26572657
"testString":
2658-
"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.');"
2658+
"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.');"
26592659
}
26602660
],
26612661
"solutions": [],

0 commit comments

Comments
 (0)