Commit 894a6fa
committed
Log remaining
The test detecting if any `govuk-<SOMETHING>()` calls make it
to the CSS output was only telling you a function made it through
(likely through a typo). That's very little information to go by
for finding why that function made it through.
This new test checks the length of the regex matches, allowing
Jest to output the list of matches if the test fails:
```
Expected length: 0
Received length: 1
Received array: [["govuk-color(\"black\")"]]
```govuk-<SOMETHING>() calls when test fails1 parent 8c3d57f commit 894a6fa
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
0 commit comments