From 5a4261d39f605353534344123bde95f15a05f5bb Mon Sep 17 00:00:00 2001 From: Shaun Hamilton Date: Mon, 20 Dec 2021 20:11:02 +0000 Subject: [PATCH] fix: add new to helper call --- .../step-050.md | 2 +- .../step-051.md | 2 +- .../step-061.md | 2 +- .../step-067.md | 2 +- .../step-082.md | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-050.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-050.md index 24890fd164..b9e1354e2e 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-050.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-050.md @@ -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)`. ```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-- diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-051.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-051.md index 2260e00af2..575e048f71 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-051.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-051.md @@ -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))`. ```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-- diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-061.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-061.md index 7cb995d34b..8b79744a82 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-061.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-061.md @@ -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)`. ```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-- diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-067.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-067.md index 8183921efb..7a809cda2b 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-067.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-067.md @@ -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%))`. ```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-- diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-082.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-082.md index ff631b66f2..c813f1db69 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-082.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-color-markers-set/step-082.md @@ -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. ```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. ```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. ```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`.