diff --git a/curriculum/challenges/english/01-responsive-web-design/css-grid/use-grid-column-to-control-spacing.english.md b/curriculum/challenges/english/01-responsive-web-design/css-grid/use-grid-column-to-control-spacing.english.md index e6861e45c8..a7029fb3f4 100644 --- a/curriculum/challenges/english/01-responsive-web-design/css-grid/use-grid-column-to-control-spacing.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/css-grid/use-grid-column-to-control-spacing.english.md @@ -27,8 +27,10 @@ Make the item with the class item5 consume the last two columns of ```yml tests: - - text: item5 class should have a grid-column property that has the value of 2 / 4. - testString: assert(code.match(/.item5\s*?{[\s\S]*grid-column\s*?:\s*?2\s*?\/\s*?4\s*?;[\s\S]*}/gi), 'item5 class should have a grid-column property that has the value of 2 / 4.'); + - text: item5 class should have a grid-column property. + testString: assert($('style').text().replace(/\s/g, '').match(/\.item5{.*grid-column:.*}/g)); + - text: item5 class should have a grid-column property which results in the div with the item5 consuming the last two columns of the grid. + testString: assert(hasCorrectSpacing()); ``` @@ -77,7 +79,22 @@ tests: +### Before Test +
+```html + +``` + +
@@ -85,8 +102,37 @@ tests:
-```js -var code = ".item5 {grid-column: 2 / 4;}" +```html + + +
+
1
+
2
+
3
+
4
+
5
+
```