fix(client): remove normalize.css from globals (#44403)

This commit is contained in:
Shaun Hamilton
2021-12-07 17:38:51 +00:00
committed by GitHub
parent 2a286d3fc6
commit 86cc757945
7 changed files with 13 additions and 34 deletions

View File

@@ -25,12 +25,7 @@ After this, you will be able to use `data[index]` to get that item in the array.
test-text
```js
const script = $('.dashboard').siblings('script')[1].innerHTML;
assert(
/var index = data.findIndex\(function \(d\) \{\s*return (year === d\.year|d.year === year);\s*\}\);/g.test(
script
)
);
assert.match(code,/const index = data.findIndex\(\(?d\)? => (year === d\.year|d.year === year)\s*\)/g);
```
# --seed--

View File

@@ -20,12 +20,9 @@ So now, when you hover a label, the function will be called with the year that i
test-text
```js
const script = $('.dashboard').siblings('script')[1].innerHTML;
assert(
/\.on\(('|"|`)mouseover\1, function \(d\) \{\s*return drawDashboard\(d\);\s*\}\)/g.test(
script
)
);
assert.match(code,
/\.on\('mouseover', d => drawDashboard\(d\)\)/g
);
```
# --seed--

View File

@@ -16,8 +16,7 @@ Go back to the top of the function and use `d3.select` to select the `.dashboard
test-text
```js
const script = $('.dashboard').siblings('script')[1].innerHTML;
assert(/d3\.select\(('|"|`)\.dashboard\1\)\.html\(('|"|`)\2\)/g.test(script));
assert.match(code, /d3\.select\(('|"|`)\.dashboard\1\)\.html\(('|"|`)\2\)/g);
```
# --seed--

View File

@@ -14,11 +14,8 @@ Create another `mouseover` event for when you hover one of the `twitter-circles`
test-text
```js
const script = $('.dashboard').siblings('script')[1].innerHTML;
assert(
/\.on\(('|"|`)mouseover\1, function \(d\) \{\s*return drawDashboard\(d\.year\);\s*\}\)/g.test(
script
)
assert.match(code,
/\.on\('mouseover', d => drawDashboard\(d\.year\)\)/
);
```

View File

@@ -16,11 +16,10 @@ After that, you will be able hover any of the circles or year labels to get the
test-text
```js
const script = $('.dashboard').siblings('script')[1].innerHTML;
assert(
script.match(
/\.on\(('|"|`)mouseover\1, function \(d\) \{\s*return drawDashboard\(d\.year\);\s*\}\)/g
).length === 3
assert.equal(
code.match(
/\.on\('mouseover', d => drawDashboard\(d\.year\)\)/g
)?.length, 3
);
```