From 409aa30b0abe4f79654edf4c87813e5811c02ceb Mon Sep 17 00:00:00 2001
From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Date: Wed, 1 May 2019 01:38:35 -0700
Subject: [PATCH] fix(curriculum): add new test to use calculated space for Use
grid-column to Control Spacing challenge (#35893)
* fix: use calculated space for test
* fix: reworded comment
Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
* fix: changed After Test to Before Test
Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
---
...-grid-column-to-control-spacing.english.md | 54 +++++++++++++++++--
1 file changed, 50 insertions(+), 4 deletions(-)
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
+