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

Commit

Permalink
fix(challenges): improved tests for adding background/background-image
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Grah <theflametrooper@gmail.com>
  • Loading branch information
jonathan-grah authored and Jonathan Grah committed Sep 26, 2018
1 parent d2d1fdc commit 343acc6
Show file tree
Hide file tree
Showing 2 changed files with 2,324 additions and 2,310 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,7 @@
"text":
"Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.",
"testString":
"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.');"
"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.');"
}
],
"solutions": [
Expand Down
Loading

0 comments on commit 343acc6

Please sign in to comment.