Skip to content

Commit

Permalink
Change some tests to arrow functions
Browse files Browse the repository at this point in the history
We generally write tests as arrow functions unless they need access to
`this` (for test.timeout() or test.skip()), but these two tests were
written as normal functions for no reason. Fix that, since I randomly
noticed it and it bothers me a tiny bit :)
  • Loading branch information
lucaswerkmeister committed Jun 25, 2023
1 parent 94380d4 commit df72fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe( 'BrowserSession', function () {
expect( response.query.statistics.pages ).to.be.above( 0 );
} );

it( 'validatepassword', async function () {
it( 'validatepassword', async () => {
const session = new BrowserSession( 'en.wikipedia.org', {
formatversion: 2,
origin: '*',
Expand Down
2 changes: 1 addition & 1 deletion test/integration/node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe( 'NodeSession', function () {
expect( response.query.statistics.pages ).to.be.above( 0 );
} );

it( 'validatepassword', async function () {
it( 'validatepassword', async () => {
const session = new NodeSession( 'en.wikipedia.org', {
formatversion: 2,
}, {
Expand Down

0 comments on commit df72fcc

Please sign in to comment.