Skip to content

Commit e60c3f8

Browse files
authored
chore: update curriculum-helpers to version 3.9.0 (freeCodeCamp#58525)
1 parent 9fb74f3 commit e60c3f8

File tree

9 files changed

+101
-78
lines changed

9 files changed

+101
-78
lines changed

curriculum/challenges/english/25-front-end-development/lab-mood-board/673b3d6b7ef7318eef926d5a.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The background color of the `.mood-board-item` element should be set to the valu
5656

5757
```js
5858
async () => {
59-
const container = await __prepTestComponent(window.index.MoodBoardItem, { color: "red" });
59+
const container = await __helpers.prepTestComponent(window.index.MoodBoardItem, { color: "red" });
6060
const moodBoardItem = container.querySelector(".mood-board-item");
6161
assert.equal(moodBoardItem.style.backgroundColor, "red");
6262
}
@@ -66,7 +66,7 @@ Your `MoodBoardItem` component should render an `img` element with a class of `m
6666

6767
```js
6868
async () => {
69-
const container = await __prepTestComponent(window.index.MoodBoardItem, { image: "https://cdn.freecodecamp.org/curriculum/labs/pathway.jpg" });
69+
const container = await __helpers.prepTestComponent(window.index.MoodBoardItem, { image: "https://cdn.freecodecamp.org/curriculum/labs/pathway.jpg" });
7070
const img = container.querySelector(".mood-board-image");
7171
assert.exists(img);
7272
assert.equal(img.tagName, "IMG");
@@ -78,7 +78,7 @@ Your `MoodBoardItem` component should render an `h3` element with a class of `mo
7878

7979
```js
8080
async () => {
81-
const container = await __prepTestComponent(window.index.MoodBoardItem, { description: "Carribean" });
81+
const container = await __helpers.prepTestComponent(window.index.MoodBoardItem, { description: "Carribean" });
8282
const text = container.querySelector(".mood-board-text");
8383
assert.exists(text);
8484
assert.equal(text.tagName, "H3");

curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef2d357676e50e4691658.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Your `Card` component should not render an empty string.
1515

1616
```js
1717
async () => {
18-
const testElem = await __prepTestComponent(window.index.Card);
18+
const testElem = await __helpers.prepTestComponent(window.index.Card);
1919
assert.notEqual(testElem.innerHTML, '');
2020
}
2121
```
@@ -24,7 +24,7 @@ You should create a `div` element with the `className` `card` at the top level o
2424

2525
```js
2626
async () => {
27-
const testElem = await __prepTestComponent(window.index.Card);
27+
const testElem = await __helpers.prepTestComponent(window.index.Card);
2828
const div = testElem.firstElementChild;
2929
assert.include([...div?.classList], 'card');
3030
}

curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef2d357676e50e4691659.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You should create an `h2` element inside your `div` element.
1717

1818
```js
1919
async () => {
20-
const testElem = await __prepTestComponent(window.index.Card);
20+
const testElem = await __helpers.prepTestComponent(window.index.Card);
2121
const h2Elem = testElem.querySelector('div > h2');
2222
assert.exists(h2Elem);
2323
}
@@ -27,7 +27,7 @@ Your `h2` element should have `{name}` as its text content.
2727

2828
```js
2929
async () => {
30-
const testElem = await __prepTestComponent(window.index.Card, { name: 'nameVal' });
30+
const testElem = await __helpers.prepTestComponent(window.index.Card, { name: 'nameVal' });
3131
const h2Elem = testElem.querySelector('div > h2');
3232
// trimming because we don't need to be picky about whitespace
3333
assert.equal(h2Elem.textContent.trim(), 'nameVal');
@@ -38,7 +38,7 @@ You should create a `p` tag with the `className` of `card-title` inside your `di
3838

3939
```js
4040
async () => {
41-
const testElem = await __prepTestComponent(window.index.Card);
41+
const testElem = await __helpers.prepTestComponent(window.index.Card);
4242
const pElem = testElem.querySelector('div > p.card-title');
4343
assert.exists(pElem);
4444
}
@@ -48,7 +48,7 @@ Your `p` element with `className` of `card-title` should have `{title}` as its t
4848

4949
```js
5050
async () => {
51-
const testElem = await __prepTestComponent(window.index.Card, { title: 'titleVal' });
51+
const testElem = await __helpers.prepTestComponent(window.index.Card, { title: 'titleVal' });
5252
const pElem = testElem.querySelector('div > p.card-title');
5353
// trimming because we don't need to be picky about whitespace
5454
assert.equal(pElem.textContent.trim(), 'titleVal');
@@ -59,7 +59,7 @@ You should create another `p` element with `{bio}` as its text.
5959

6060
```js
6161
async () => {
62-
const testElem = await __prepTestComponent(window.index.Card, {title: 'titleVal', bio: 'bioVal' });
62+
const testElem = await __helpers.prepTestComponent(window.index.Card, {title: 'titleVal', bio: 'bioVal' });
6363
// trimming because we don't need to be picky about whitespace
6464
const texts = [...testElem.querySelectorAll('div > p')].map((p) => p.textContent.trim());
6565
const bioText = texts.find((text) => text.includes('bioVal'));

curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef2d357676e50e469165a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Your `App` component should return an empty string.
2525
// This isn't a perfect test, since various return values are converted into
2626
// empty strings, but it has to be a valid React component.
2727
async() => {
28-
const testElem = await __prepTestComponent(window.index.App);
28+
const testElem = await __helpers.prepTestComponent(window.index.App);
2929
assert.equal(testElem.textContent, '');
3030
}
3131
```

curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef2d357676e50e469165b.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Your `App` component should not render an empty string.
1515

1616
```js
1717
async () => {
18-
const testElem = await __prepTestComponent(window.index.App);
18+
const testElem = await __helpers.prepTestComponent(window.index.App);
1919
assert.notEqual(testElem.innerHTML, '');
2020
}
2121
```
@@ -24,7 +24,7 @@ Your `App` component should return a single `div` element.
2424

2525
```js
2626
async () => {
27-
const testElem = await __prepTestComponent(window.index.App);
27+
const testElem = await __helpers.prepTestComponent(window.index.App);
2828
assert.equal(testElem.firstElementChild?.tagName, 'DIV');
2929
assert.lengthOf(testElem.children, 1);
3030
}
@@ -34,7 +34,7 @@ Your `div` should have a `className` property of `flex-container`.
3434
3535
```js
3636
async () => {
37-
const testElem = await __prepTestComponent(window.index.App);
37+
const testElem = await __helpers.prepTestComponent(window.index.App);
3838
assert.include([...testElem.firstElementChild.classList], 'flex-container');
3939
}
4040
```

curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef2d357676e50e469165c.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You should use the `Card` component in your `App` component.
1515

1616
```js
1717
async () => {
18-
const testElem = await __prepTestComponent(window.index.App);
18+
const testElem = await __helpers.prepTestComponent(window.index.App);
1919
const card = testElem.querySelector('.card');
2020
assert.exists(card);
2121
}
@@ -25,7 +25,7 @@ You should pass the `name` prop with value `"Mark"` to your `Card` component.
2525

2626
```js
2727
async () => {
28-
const testElem = await __prepTestComponent(window.index.App);
28+
const testElem = await __helpers.prepTestComponent(window.index.App);
2929
const card = testElem.querySelector('.card');
3030
assert.equal(card.querySelector('h2').textContent, 'Mark');
3131
}
@@ -35,7 +35,7 @@ You should pass the `title` prop with value `"Frontend developer"` to your `Card
3535

3636
```js
3737
async () => {
38-
const testElem = await __prepTestComponent(window.index.App);
38+
const testElem = await __helpers.prepTestComponent(window.index.App);
3939
const card = testElem.querySelector('.card');
4040
assert.equal(card.querySelector('.card-title').textContent, 'Frontend developer');
4141
}
@@ -45,7 +45,7 @@ You should pass the `bio` prop with value `"I like to work with different fronte
4545

4646
```js
4747
async () => {
48-
const testElem = await __prepTestComponent(window.index.App);
48+
const testElem = await __helpers.prepTestComponent(window.index.App);
4949
const card = testElem.querySelector('.card');
5050
assert.equal(card.querySelector('p:last-child').textContent, 'I like to work with different frontend technologies and play video games.');
5151
}

0 commit comments

Comments
 (0)