Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Jul 11, 2023
1 parent 4388046 commit 7f37fa9
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 33 deletions.
136 changes: 105 additions & 31 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion src/headless-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ const getBrowser = ( ) =>


// TODO: it's weird that after calling this function there is no way to
// get a browser any more. If getBrowser() is called again a new instance should be created
// get a browser any more. If getBrowser() is called again a new BrowserHandler instance should be created
const closeBrowser = ( ) => {

return handler.exit();
};

Expand Down
2 changes: 1 addition & 1 deletion validate
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let program = require( 'commander' );
const pkg = require( './package' );
const fs = require( 'fs' );
const validator = require( './src/validator' );
const { BrowserHandler, closeBrowser } = require( './src/headless-browser' );
const { closeBrowser } = require( './src/headless-browser' );

const _getFileContents = filePath => {
return new Promise( ( resolve, reject ) => {
Expand Down

0 comments on commit 7f37fa9

Please sign in to comment.