docs: fix js example formatting (#12635)

This commit is contained in:
Yury Semikhatsky 2022-03-09 17:10:37 -08:00 committed by GitHub
parent d49843edaa
commit 5f1188d195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,8 @@ exports.PlaywrightDevPage = class PlaywrightDevPage {
await this.getStarted();
await this.pomLink.click();
}
}```
}
```
```js js-flavor=ts
// playwright-dev-page.ts
@ -71,7 +72,8 @@ export class PlaywrightDevPage {
await this.getStarted();
await this.pomLink.click();
}
}```
}
```
Now we can use the `PlaywrightDevPage` class in our tests.