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

Commit a59f601

Browse files
jonathan-grahJonathan Grah
authored andcommitted
fix(challenges): improved tests for adding background/background-image
Signed-off-by: Jonathan Grah <[email protected]>
1 parent d2d1fdc commit a59f601

File tree

2 files changed

+2324
-2310
lines changed

2 files changed

+2324
-2310
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@
23142314
"text":
23152315
"Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.",
23162316
"testString":
2317-
"assert(code.match(/background:\\s*?url\\(\\s*(\"|'|)https:\\/\\/i\\.imgur\\.com\\/MJAkxbh\\.png\\1\\s*\\)/gi), 'Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.');"
2317+
"assert(code.match(/(background:|background-image:)\\s*?url\\(\\s*(\"|'|)https:\\/\\/i\\.imgur\\.com\\/MJAkxbh\\.png\\2\\s*\\);*/gi, 'Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.');"
23182318
}
23192319
],
23202320
"solutions": [

0 commit comments

Comments
 (0)