Skip to content

Commit

Permalink
Cypress: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Oct 21, 2021
1 parent 8a08ed6 commit e81bc84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import ReportGenerator = require('lighthouse/report/generator/report-generator')
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
module.exports = (on<%_ if (cypressCoverage) { _%>, config<%_ } _%>) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
<%_ if (cypressCoverage) { _%>// `config` is the resolved Cypress config<%_ } _%>
on('before:browser:launch', (browser, launchOptions) => {
prepareAudit(launchOptions);
if (browser.name === 'chrome' && browser.isHeadless) {
Expand Down

0 comments on commit e81bc84

Please sign in to comment.