fix: add new to helper call

This commit is contained in:
Shaun Hamilton
2021-12-20 20:11:02 +00:00
parent 6698564cd6
commit 5a4261d39f
5 changed files with 7 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ First, in the `.red` CSS rule, set the `background` property to `linear-gradient
Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg)`. Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg)`.
```js ```js
assert.equal(__helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg)'); assert.equal(new __helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg)');
``` ```
# --seed-- # --seed--

View File

@@ -16,7 +16,7 @@ In the `linear-gradient` function, use the `rgb` function to set the first color
Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg, rgb(255, 0, 0))`. Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg, rgb(255, 0, 0))`.
```js ```js
assert.equal(__helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg,rgb(255,0,0))'); assert.equal(new __helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg,rgb(255,0,0))');
``` ```
# --seed-- # --seed--

View File

@@ -16,7 +16,7 @@ Use the `linear-gradient` function and set `gradientDirection` to `180deg`. And
Your `.green` CSS rule should have a `background` property with the value `linear-gradient(180deg, #55680D)`. Your `.green` CSS rule should have a `background` property with the value `linear-gradient(180deg, #55680D)`.
```js ```js
assert.equal(__helpers.CSSHelp(document).getStyle('.green').getPropVal('background', true), 'linear-gradient(180deg,#55680D)'); assert.equal(new __helpers.CSSHelp(document).getStyle('.green').getPropVal('background', true), 'linear-gradient(180deg,#55680D)');
``` ```
# --seed-- # --seed--

View File

@@ -14,7 +14,7 @@ Use the `linear-gradient` function, and pass in the `hsl` function with the valu
Your `.blue` CSS rule should have a `background` property with the value `linear-gradient(hsl(186, 76%, 16%))`. Your `.blue` CSS rule should have a `background` property with the value `linear-gradient(hsl(186, 76%, 16%))`.
```js ```js
assert.equal(__helpers.CSSHelp(document).getStyle('.blue').getPropVal('background', true), 'linear-gradient(hsl(186,76%,16%))'); assert.equal(new __helpers.CSSHelp(document).getStyle('.blue').getPropVal('background', true), 'linear-gradient(hsl(186,76%,16%))');
``` ```
# --seed-- # --seed--

View File

@@ -22,20 +22,20 @@ In the `.sleeve` CSS rule, replace the `border-left-width`, `border-left-style`,
Your `.sleeve` CSS rule should not have a `border-left-width` property and value. Your `.sleeve` CSS rule should not have a `border-left-width` property and value.
```js ```js
assert.isEmpty(__helpers.CSSHelp(document).getStyle('.sleeve')?.borderLeftWidth); assert.isEmpty(new __helpers.CSSHelp(document).getStyle('.sleeve')?.borderLeftWidth);
); );
``` ```
Your `.sleeve` CSS rule should not have a `border-left-style` property and value. Your `.sleeve` CSS rule should not have a `border-left-style` property and value.
```js ```js
assert.isEmpty(__helpers.CSSHelp(document).getStyle('.sleeve')?.borderLeftStyle); assert.isEmpty(new __helpers.CSSHelp(document).getStyle('.sleeve')?.borderLeftStyle);
``` ```
Your `.sleeve` CSS rule should not have a `border-left-color` property and value. Your `.sleeve` CSS rule should not have a `border-left-color` property and value.
```js ```js
assert.isEmpty(__helpers.CSSHelp(document).getStyle('.sleeve')?.borderLeftColor); assert.isEmpty(new __helpers.CSSHelp(document).getStyle('.sleeve')?.borderLeftColor);
``` ```
Your `.sleeve` CSS rule should have a `border-left` shorthand property and with the value `10px solid black`. Your `.sleeve` CSS rule should have a `border-left` shorthand property and with the value `10px solid black`.