Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Oct 30, 2017
1 parent 940f0fd commit 1cd42b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cdp/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ module.exports = async function connect(options, files) {
mochaOptions.timeout = 0;
}
const injectMochaOptions = `window.mochaOptions = ${JSON.stringify(mochaOptions)}`;
const awFiles = `window.awFiles = ${JSON.stringify(files)}`;
const injectAwFiles = `window.awFiles = ${JSON.stringify(files)}`;

await Promise.all([DOM.enable(), DOMStorage.enable(), Network.enable(), Page.enable(), Runtime.enable(), Console.enable()]);
await Page.addScriptToEvaluateOnLoad({ scriptSource: injectMediator });
await Page.addScriptToEvaluateOnLoad({ scriptSource: injectMochaOptions });
await Page.addScriptToEvaluateOnLoad({ scriptSource: awFiles });
await Page.addScriptToEvaluateOnLoad({ scriptSource: injectAwFiles });
await Page.addScriptToEvaluateOnLoad({ scriptSource: getContent('browser-shim.js') });

return client;
Expand Down
1 change: 0 additions & 1 deletion src/cdp/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class Runner {
}
async run(files) {
await this.setup(files);

await this.navigate();
}
}
Expand Down

0 comments on commit 1cd42b3

Please sign in to comment.