Skip to content

Commit c77578b

Browse files
committed
fix code examples to make linter happy
1 parent a663e40 commit c77578b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

sources/academy/tutorials/node_js/multiple-runs-scrape.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ interface Input {
7373
await Actor.init();
7474
7575
const {
76-
parallelRunsCount= 1,
76+
parallelRunsCount = 1,
7777
targetActorId,
7878
targetActorInput = {},
7979
targetActorRunOptions = {},

sources/academy/webscraping/puppeteer_playwright/executing_scripts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const page = await browser.newPage();
118118

119119
await page.goto('https://google.com/');
120120

121-
const params = { randomString: Math.random().toString(36).slice(2) }
121+
const params = { randomString: Math.random().toString(36).slice(2) };
122122

123123
await page.evaluate(({ randomString }) => {
124124
document.querySelector('title').textContent = randomString;
@@ -140,7 +140,7 @@ const page = await browser.newPage();
140140

141141
await page.goto('https://google.com/');
142142

143-
const params = { randomString: Math.random().toString(36).slice(2) }
143+
const params = { randomString: Math.random().toString(36).slice(2) };
144144

145145
await page.evaluate(({ randomString }) => {
146146
document.querySelector('title').textContent = randomString;

sources/academy/webscraping/puppeteer_playwright/page/interacting_with_a_page.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Let's first focus on the first 3 steps listed above. By using `page.click()` and
3838
```js
3939
// Click the "I agree" button
4040
await page.click('button:has-text("Accept all")');
41-
4241
```
4342

4443
</TabItem>
@@ -47,7 +46,6 @@ await page.click('button:has-text("Accept all")');
4746
```js
4847
// Click the "I agree" button
4948
await page.click('button + button');
50-
5149
```
5250

5351
</TabItem>

0 commit comments

Comments
 (0)