Skip to content

Commit

Permalink
refactor code after review
Browse files Browse the repository at this point in the history
  • Loading branch information
inuur committed Dec 5, 2022
1 parent 2e50f5a commit b5278a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/hstest/environment/page.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hstest/environment/page.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions hstest/environment/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Page {
isOpened: boolean;
pageInstance!: puppeteer.Page;
gotoOptions: puppeteer.WaitForOptions;
requests: Array<any>;
requests: Array<puppeteer.HTTPRequest>;

constructor(url: string, browser: Browser, gotoOptions: puppeteer.WaitForOptions) {
this.url = url;
Expand All @@ -35,7 +35,7 @@ class Page {
this.isOpened = true;
}

async setUpRequestInterceptor(): Promise<void> {
setUpRequestInterceptor(): void {
this.pageInstance.on('request', async request => {
this.requests.push(request);
});
Expand Down

0 comments on commit b5278a2

Please sign in to comment.