From eab801ae3fc76735167dc8599384341eb221dceb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 25 Feb 2020 00:09:47 +0630 Subject: [PATCH] =?UTF-8?q?chore(deps):=20Update=20dependency=20eslint=20t?= =?UTF-8?q?o=20version=206.8.0=20=F0=9F=8C=9F=20(#6509)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Update eslint to 6.8.0 🌟 * fix missing dangling commas for linter * fix missing dangling commas for linter * more lint fixes * yarn lock Co-authored-by: WhiteSource Renovate Co-authored-by: Jennifer Shehane --- cli/lib/cli.js | 6 +- cli/lib/errors.js | 10 +- cli/lib/exec/spawn.js | 2 +- cli/lib/tasks/download.js | 4 +- cli/lib/tasks/install.js | 16 +- cli/lib/tasks/state.js | 2 +- cli/lib/tasks/verify.js | 8 +- cli/package.json | 2 +- cli/scripts/post-install.js | 8 +- cli/test/lib/exec/open_spec.js | 16 +- cli/test/lib/exec/run_spec.js | 4 +- cli/test/lib/tasks/install_spec.js | 28 +-- cli/test/lib/tasks/state_spec.js | 20 +- cli/test/lib/tasks/verify_spec.js | 18 +- cli/test/support/normalize.js | 2 +- package.json | 2 +- .../integration/setup_project_modal_spec.js | 2 +- .../desktop-gui/src/projects/projects-api.js | 2 +- packages/driver/src/cy/actionability.js | 2 +- packages/driver/src/cy/assertions.js | 2 +- packages/driver/src/cy/chai.js | 10 +- .../driver/src/cy/commands/actions/click.js | 4 +- .../driver/src/cy/commands/actions/type.js | 2 +- packages/driver/src/cy/keyboard.ts | 22 +- packages/driver/src/cy/mouse.js | 2 +- packages/driver/src/cypress/chai_jquery.js | 34 +-- packages/driver/src/cypress/cy.js | 8 +- packages/driver/src/cypress/runner.js | 6 +- packages/driver/src/dom/elements.ts | 2 +- packages/driver/src/dom/selection.ts | 2 +- .../integration/commands/assertions_spec.js | 212 +++++++++--------- packages/driver/test/cypress/support/utils.js | 2 +- packages/extension/gulpfile.js | 4 +- .../test/integration/proxy_spec.js | 4 +- packages/https-proxy/test/unit/ca_spec.js | 2 +- packages/launcher/lib/browsers.ts | 2 +- packages/launcher/lib/detect.ts | 6 +- packages/launcher/lib/errors.ts | 2 +- packages/launcher/lib/linux/index.ts | 8 +- packages/launcher/lib/windows/index.ts | 4 +- packages/launcher/test/unit/detect_spec.ts | 4 +- packages/network/lib/agent.ts | 2 +- packages/network/lib/connect.ts | 2 +- packages/network/test/support/servers.ts | 8 +- packages/network/test/unit/agent_spec.ts | 4 +- .../proxy/lib/http/response-middleware.ts | 2 +- packages/proxy/lib/http/util/security.ts | 4 +- .../test/unit/http/util/security.spec.ts | 2 +- packages/reporter/package.json | 2 +- .../reporter/src/commands/command.spec.tsx | 2 +- packages/reporter/src/commands/command.tsx | 2 +- .../reporter/src/lib/flash-on-click.spec.tsx | 2 +- .../reporter/src/runnables/runnables-store.ts | 2 +- .../reporter/src/runnables/runnables.spec.tsx | 12 +- packages/reporter/src/test/test.spec.tsx | 10 +- packages/runner/src/app/app.spec.jsx | 2 +- packages/runner/src/lib/logger.js | 2 +- packages/server/lib/browsers/chrome.ts | 4 +- packages/server/lib/browsers/utils.ts | 10 +- packages/server/lib/gui/menu.js | 2 +- packages/server/lib/modes/record.js | 6 +- packages/server/lib/modes/run.js | 10 +- packages/server/lib/open_project.js | 2 +- .../server/lib/plugins/child/run_plugins.js | 2 +- packages/server/lib/project.js | 8 +- packages/server/lib/scaffold.js | 4 +- packages/server/lib/socket.js | 2 +- packages/server/lib/util/app_data.js | 4 +- .../server/lib/util/chrome_policy_check.js | 2 +- packages/server/lib/util/profile_cleaner.js | 2 +- packages/server/lib/util/specs.js | 4 +- packages/server/lib/util/validation.js | 4 +- .../server/test/integration/cypress_spec.js | 6 +- .../performance/proxy_performance_spec.js | 2 +- packages/server/test/scripts/rename.js | 6 +- packages/server/test/scripts/run.js | 10 +- .../cypress/plugins/index.js | 2 +- .../projects/e2e/cypress/plugins/index.js | 2 +- packages/server/test/support/helpers/e2e.js | 8 +- packages/server/test/unit/modes/run_spec.js | 2 +- packages/server/test/unit/scaffold_spec.js | 6 +- packages/server/test/unit/screenshots_spec.js | 14 +- scripts/add_newlines_to_snapshots.js | 2 +- scripts/binary/util/purge-cloudflare-cache.ts | 2 +- scripts/check-node-version.js | 6 +- scripts/decaff/no-cond-assign.js | 2 +- scripts/decaff/switch-false.js | 2 +- scripts/test-other-projects.js | 2 +- scripts/unit/binary/bump-spec.js | 4 +- scripts/unit/binary/move-binaries-spec.js | 2 +- scripts/unit/binary/upload-spec.js | 2 +- scripts/unit/binary/util/packages-spec.js | 2 +- scripts/unit/konfig-spec.js | 4 +- scripts/win-appveyor-build.js | 10 +- yarn.lock | 105 ++++++--- 95 files changed, 440 insertions(+), 387 deletions(-) diff --git a/cli/lib/cli.js b/cli/lib/cli.js index 77caf972cc..de16a6b5db 100644 --- a/cli/lib/cli.js +++ b/cli/lib/cli.js @@ -171,7 +171,7 @@ module.exports = { debug('invalid CYPRESS_ENV value', process.env.CYPRESS_ENV) return errors.exitWithError(errors.errors.invalidCypressEnv)( - `CYPRESS_ENV=${process.env.CYPRESS_ENV}` + `CYPRESS_ENV=${process.env.CYPRESS_ENV}`, ) } @@ -251,7 +251,7 @@ module.exports = { .command('install') .usage('[options]') .description( - 'Installs the Cypress executable matching this package\'s version' + 'Installs the Cypress executable matching this package\'s version', ) .option('-f, --force', text('forceInstall')) .action((opts) => { @@ -264,7 +264,7 @@ module.exports = { .command('verify') .usage('[options]') .description( - 'Verifies that Cypress is installed correctly and executable' + 'Verifies that Cypress is installed correctly and executable', ) .option('--dev', text('dev'), coerceFalse) .action((opts) => { diff --git a/cli/lib/errors.js b/cli/lib/errors.js index a4dd99075b..28e9fd9380 100644 --- a/cli/lib/errors.js +++ b/cli/lib/errors.js @@ -36,7 +36,7 @@ const failedUnzip = { const missingApp = (binaryDir) => { return { description: `No version of Cypress is installed in: ${chalk.cyan( - binaryDir + binaryDir, )}`, solution: stripIndent` \nPlease reinstall Cypress by running: ${chalk.cyan('cypress install')} @@ -214,7 +214,7 @@ const removed = { CYPRESS_BINARY_VERSION: { description: stripIndent` The environment variable CYPRESS_BINARY_VERSION has been renamed to CYPRESS_INSTALL_BINARY as of version ${chalk.green( - '3.0.0' + '3.0.0', )} `, solution: stripIndent` @@ -224,7 +224,7 @@ const removed = { CYPRESS_SKIP_BINARY_INSTALL: { description: stripIndent` The environment variable CYPRESS_SKIP_BINARY_INSTALL has been removed as of version ${chalk.green( - '3.0.0' + '3.0.0', )} `, solution: stripIndent` @@ -287,7 +287,7 @@ function formErrorText (info, msg, prevMessage) { la( is.unemptyString(obj.description), 'expected error description to be text', - obj.description + obj.description, ) // assuming that if there the solution is a function it will handle @@ -307,7 +307,7 @@ function formErrorText (info, msg, prevMessage) { la( is.unemptyString(obj.solution), 'expected error solution to be text', - obj.solution + obj.solution, ) add(` diff --git a/cli/lib/exec/spawn.js b/cli/lib/exec/spawn.js index 88eb8bc2ff..3c3f43c68f 100644 --- a/cli/lib/exec/spawn.js +++ b/cli/lib/exec/spawn.js @@ -102,7 +102,7 @@ module.exports = { // the launch cmd to be 'npm run dev' executable = 'node' args.unshift( - path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js') + path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'), ) debug('in dev mode the args became %o', args) diff --git a/cli/lib/tasks/download.js b/cli/lib/tasks/download.js index 5afd2a7b95..15e92d6923 100644 --- a/cli/lib/tasks/download.js +++ b/cli/lib/tasks/download.js @@ -121,7 +121,7 @@ const verifyDownloadedFile = (filename, expectedSize, expectedChecksum) => { debug(text) throw new Error(text) - } + }, ) } @@ -253,7 +253,7 @@ const downloadFromUrl = ({ url, downloadDestination, progress }) => { Failed downloading the Cypress binary. Response code: ${response.statusCode} Response message: ${response.statusMessage} - ` + `, ) reject(err) diff --git a/cli/lib/tasks/install.js b/cli/lib/tasks/install.js index 26cb7b23cc..7a6bfa26b2 100644 --- a/cli/lib/tasks/install.js +++ b/cli/lib/tasks/install.js @@ -50,7 +50,7 @@ const displayCompletionMsg = () => { logger.log() logger.log( 'You can now open Cypress by running:', - chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open') + chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open'), ) logger.log() @@ -88,7 +88,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => { util.setTaskTitle( task, util.titleize(chalk.green('Downloaded Cypress')), - rendererOptions.renderer + rendererOptions.renderer, ) }) }, @@ -115,7 +115,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => { util.setTaskTitle( task, util.titleize(chalk.green('Finished Installation'), chalk.gray(installDir)), - rendererOptions.renderer + rendererOptions.renderer, ) }) }, @@ -160,7 +160,7 @@ const start = (options = {}) => { debug('environment variable CYPRESS_INSTALL_BINARY = 0, skipping install') logger.log( stripIndent` - ${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.` + ${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`, ) logger.log() @@ -184,7 +184,7 @@ const start = (options = {}) => { ${chalk.yellow('Note:')} Overriding Cypress cache directory to: ${chalk.cyan(envCache)} Previous installs of Cypress may not be found. - ` + `, ) logger.log() @@ -254,7 +254,7 @@ const start = (options = {}) => { Instead we will install version: ${chalk.green(needVersion)} These versions may not work properly together. - `) + `), ) logger.log() @@ -337,7 +337,7 @@ const unzipTask = ({ zipFilePath, installDir, progress, rendererOptions }) => { util.setTaskTitle( task, util.titleize(chalk.green('Unzipped Cypress')), - rendererOptions.renderer + rendererOptions.renderer, ) }) }, @@ -355,7 +355,7 @@ const progessify = (task, title) => { util.setTaskTitle( task, util.titleize(title, percentComplete, remaining), - getRendererOptions().renderer + getRendererOptions().renderer, ) } } diff --git a/cli/lib/tasks/state.js b/cli/lib/tasks/state.js index 9e12427ffb..9023df2b3b 100644 --- a/cli/lib/tasks/state.js +++ b/cli/lib/tasks/state.js @@ -150,7 +150,7 @@ const writeBinaryVerifiedAsync = (verified, binaryDir) => { return fs.outputJsonAsync( getBinaryStatePath(binaryDir), _.extend(contents, { verified }), - { spaces: 2 } + { spaces: 2 }, ) }) } diff --git a/cli/lib/tasks/verify.js b/cli/lib/tasks/verify.js index 9e359abd27..1d6298d443 100644 --- a/cli/lib/tasks/verify.js +++ b/cli/lib/tasks/verify.js @@ -55,7 +55,7 @@ const runSmokeTest = (binaryDir, options) => { debug('error timedOut is true') return throwFormErrorText( - errors.smokeTestFailure(smokeTestCommand, true) + errors.smokeTestFailure(smokeTestCommand, true), )(errMessage) } @@ -90,7 +90,7 @@ const runSmokeTest = (binaryDir, options) => { if (options.dev) { executable = 'node' args.unshift( - path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js') + path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'), ) } @@ -208,9 +208,9 @@ function testBinary (version, binaryDir, options) { task, util.titleize( chalk.green('Verified Cypress!'), - chalk.gray(binaryDir) + chalk.gray(binaryDir), ), - rendererOptions.renderer + rendererOptions.renderer, ) }) }, diff --git a/cli/package.json b/cli/package.json index d955f78b0b..c0fb74b8c7 100644 --- a/cli/package.json +++ b/cli/package.json @@ -78,7 +78,7 @@ "cross-env": "6.0.3", "dependency-check": "3.4.1", "dtslint": "0.9.0", - "eslint": "6.1.0", + "eslint": "6.8.0", "execa-wrap": "1.4.0", "hasha": "5.0.0", "mocha": "6.2.2", diff --git a/cli/scripts/post-install.js b/cli/scripts/post-install.js index c1e9d2a048..3115d45c33 100644 --- a/cli/scripts/post-install.js +++ b/cli/scripts/post-install.js @@ -32,14 +32,14 @@ shell.sed( '-i', '', '', - join('types', 'chai-jquery', 'index.d.ts') + join('types', 'chai-jquery', 'index.d.ts'), ) shell.sed( '-i', '', '', - join('types', 'chai-jquery', 'index.d.ts') + join('types', 'chai-jquery', 'index.d.ts'), ) const sinonChaiFilename = join('types', 'sinon-chai', 'index.d.ts') @@ -48,7 +48,7 @@ shell.sed( '-i', '', '', - sinonChaiFilename + sinonChaiFilename, ) // also use relative import via path for sinon-chai @@ -57,7 +57,7 @@ shell.sed( '-i', '', '', - sinonChaiFilename + sinonChaiFilename, ) // and an import sinon line to be changed to relative path diff --git a/cli/test/lib/exec/open_spec.js b/cli/test/lib/exec/open_spec.js index 62315f5e33..85bf67267c 100644 --- a/cli/test/lib/exec/open_spec.js +++ b/cli/test/lib/exec/open_spec.js @@ -42,7 +42,7 @@ describe('exec open', function () { return open.start({ env: 'host=http://localhost:1337,name=brian' }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--env', 'host=http://localhost:1337,name=brian'] + ['--env', 'host=http://localhost:1337,name=brian'], ) }) }) @@ -51,7 +51,7 @@ describe('exec open', function () { return open.start({ config: 'watchForFileChanges=false,baseUrl=localhost' }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--config', 'watchForFileChanges=false,baseUrl=localhost'] + ['--config', 'watchForFileChanges=false,baseUrl=localhost'], ) }) }) @@ -60,7 +60,7 @@ describe('exec open', function () { return open.start({ configFile: false }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--config-file', false] + ['--config-file', false], ) }) }) @@ -69,7 +69,7 @@ describe('exec open', function () { return open.start({ configFile: 'special-cypress.json' }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--config-file', 'special-cypress.json'] + ['--config-file', 'special-cypress.json'], ) }) }) @@ -80,7 +80,7 @@ describe('exec open', function () { return open.start() .then(() => { expect(spawn.start).to.be.calledWith( - ['--project', process.cwd()] + ['--project', process.cwd()], ) }) }) @@ -91,7 +91,7 @@ describe('exec open', function () { return open.start({ global: true }) .then(() => { expect(spawn.start).not.to.be.calledWith( - ['--project', process.cwd()] + ['--project', process.cwd()], ) }) }) @@ -102,7 +102,7 @@ describe('exec open', function () { return open.start({ project: '/path/to/project' }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--project', '/path/to/project'] + ['--project', '/path/to/project'], ) }) }) @@ -111,7 +111,7 @@ describe('exec open', function () { return open.start({ project: '/path/to/project' }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--project', '/path/to/project'] + ['--project', '/path/to/project'], ) }) }) diff --git a/cli/test/lib/exec/run_spec.js b/cli/test/lib/exec/run_spec.js index a2e89bd326..69df0f1fa7 100644 --- a/cli/test/lib/exec/run_spec.js +++ b/cli/test/lib/exec/run_spec.js @@ -100,7 +100,7 @@ describe('exec run', function () { return run.start({ configFile: false }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--run-project', process.cwd(), '--config-file', false] + ['--run-project', process.cwd(), '--config-file', false], ) }) }) @@ -109,7 +109,7 @@ describe('exec run', function () { return run.start({ configFile: 'special-cypress.json' }) .then(() => { expect(spawn.start).to.be.calledWith( - ['--run-project', process.cwd(), '--config-file', 'special-cypress.json'] + ['--run-project', process.cwd(), '--config-file', 'special-cypress.json'], ) }) }) diff --git a/cli/test/lib/tasks/install_spec.js b/cli/test/lib/tasks/install_spec.js index 9210aad173..8de364ad49 100644 --- a/cli/test/lib/tasks/install_spec.js +++ b/cli/test/lib/tasks/install_spec.js @@ -68,7 +68,7 @@ describe('/lib/tasks/install', function () { snapshot( 'skip installation 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -92,7 +92,7 @@ describe('/lib/tasks/install', function () { snapshot( 'specify version in env vars 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -195,7 +195,7 @@ describe('/lib/tasks/install', function () { .then(() => { return snapshot( 'version already installed - cypress install 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -207,7 +207,7 @@ describe('/lib/tasks/install', function () { .then(() => { snapshot( 'version already installed - postInstall 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -231,7 +231,7 @@ describe('/lib/tasks/install', function () { snapshot( 'continues installing on failure 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -254,12 +254,12 @@ describe('/lib/tasks/install', function () { // cleans up the zip file expect(fs.removeAsync).to.be.calledWith( - downloadDestination + downloadDestination, ) snapshot( 'installs without existing installation 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -282,7 +282,7 @@ describe('/lib/tasks/install', function () { snapshot( 'installed version does not match needed version 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -305,7 +305,7 @@ describe('/lib/tasks/install', function () { snapshot( 'forcing true always installs 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -330,7 +330,7 @@ describe('/lib/tasks/install', function () { snapshot( 'warning installing as global 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -347,7 +347,7 @@ describe('/lib/tasks/install', function () { it('uses verbose renderer', function () { snapshot( 'installing in ci 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -371,7 +371,7 @@ describe('/lib/tasks/install', function () { snapshot( 'invalid cache directory 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -441,7 +441,7 @@ describe('/lib/tasks/install', function () { snapshot( 'error for removed CYPRESS_BINARY_VERSION 1', - normalize(this.stdout.toString()) + normalize(this.stdout.toString()), ) }) }) @@ -455,7 +455,7 @@ describe('/lib/tasks/install', function () { .then(() => { return snapshot( 'silent install 1', - normalize(`[no output]${this.stdout.toString()}`) + normalize(`[no output]${this.stdout.toString()}`), ) }) }) diff --git a/cli/test/lib/tasks/state_spec.js b/cli/test/lib/tasks/state_spec.js index 59301a8007..d4befad279 100644 --- a/cli/test/lib/tasks/state_spec.js +++ b/cli/test/lib/tasks/state_spec.js @@ -20,7 +20,7 @@ const binaryPkgPath = path.join( 'Contents', 'Resources', 'app', - 'package.json' + 'package.json', ) describe('lib/tasks/state', function () { @@ -88,7 +88,7 @@ describe('lib/tasks/state', function () { '.cache/Cypress/1.2.3/Cypress.app/Contents/MacOS/Cypress' expect(state.getPathToExecutable(state.getBinaryDir())).to.equal( - macExecutable + macExecutable, ) }) @@ -97,7 +97,7 @@ describe('lib/tasks/state', function () { const linuxExecutable = '.cache/Cypress/1.2.3/Cypress/Cypress' expect(state.getPathToExecutable(state.getBinaryDir())).to.equal( - linuxExecutable + linuxExecutable, ) }) @@ -110,7 +110,7 @@ describe('lib/tasks/state', function () { const customBinaryDir = 'home/downloads/cypress.app' expect(state.getPathToExecutable(customBinaryDir)).to.equal( - 'home/downloads/cypress.app/Contents/MacOS/Cypress' + 'home/downloads/cypress.app/Contents/MacOS/Cypress', ) }) }) @@ -118,7 +118,7 @@ describe('lib/tasks/state', function () { context('.getBinaryDir', function () { it('resolves path on macOS', function () { expect(state.getBinaryDir()).to.equal( - path.join(versionDir, 'Cypress.app') + path.join(versionDir, 'Cypress.app'), ) }) @@ -142,7 +142,7 @@ describe('lib/tasks/state', function () { it('resolves path to binary/installation from version', function () { expect(state.getBinaryDir('4.5.6')).to.be.equal( - path.join(cacheDir, '4.5.6', 'Cypress.app') + path.join(cacheDir, '4.5.6', 'Cypress.app'), ) }) @@ -221,10 +221,10 @@ describe('lib/tasks/state', function () { () => { return expect(fs.outputJsonAsync).to.be.calledWith( binaryStateFilename, - { verified: true } + { verified: true }, ) }, - { spaces: 2 } + { spaces: 2 }, ) }) @@ -237,7 +237,7 @@ describe('lib/tasks/state', function () { return expect(fs.outputJsonAsync).to.be.calledWith( binaryStateFilename, { verified: false }, - { spaces: 2 } + { spaces: 2 }, ) }) }) @@ -310,7 +310,7 @@ describe('lib/tasks/state', function () { return state .parseRealPlatformBinaryFolderAsync( - '/Documents/Cypress.app/Contents/MacOS/Cypress' + '/Documents/Cypress.app/Contents/MacOS/Cypress', ) .then((path) => { return expect(path).to.eql('/Documents/Cypress.app') diff --git a/cli/test/lib/tasks/verify_spec.js b/cli/test/lib/tasks/verify_spec.js index ed24f06e08..f1f324c85f 100644 --- a/cli/test/lib/tasks/verify_spec.js +++ b/cli/test/lib/tasks/verify_spec.js @@ -82,7 +82,7 @@ context('lib/tasks/verify', () => { snapshot( 'no version of Cypress installed 1', - normalize(stdout.toString()) + normalize(stdout.toString()), ) }) }) @@ -159,7 +159,7 @@ context('lib/tasks/verify', () => { .catch(() => { return snapshot( 'warning installed version does not match verified version 1', - normalize(stdout.toString()) + normalize(stdout.toString()), ) }) }) @@ -323,7 +323,7 @@ context('lib/tasks/verify', () => { .then(() => { return snapshot( 'fails verifying Cypress 1', - normalize(slice(stdout.toString())) + normalize(slice(stdout.toString())), ) }) }) @@ -407,7 +407,7 @@ context('lib/tasks/verify', () => { expect(util.exec).to.have.been.calledTwice // user should have been warned expect(logger.warn).to.have.been.calledWithMatch( - 'This is likely due to a misconfigured DISPLAY environment variable.' + 'This is likely due to a misconfigured DISPLAY environment variable.', ) }) }) @@ -502,7 +502,7 @@ context('lib/tasks/verify', () => { return snapshot( 'Cypress non-executable permissions 1', - normalize(stdout.toString()) + normalize(stdout.toString()), ) }) }) @@ -517,7 +517,7 @@ context('lib/tasks/verify', () => { return verify.start().then(() => { return snapshot( 'current version has not been verified 1', - normalize(stdout.toString()) + normalize(stdout.toString()), ) }) }) @@ -532,7 +532,7 @@ context('lib/tasks/verify', () => { return verify.start().then(() => { return snapshot( 'different version installed 1', - normalize(stdout.toString()) + normalize(stdout.toString()), ) }) }) @@ -549,7 +549,7 @@ context('lib/tasks/verify', () => { return verify.start().then(() => { return snapshot( 'silent verify 1', - normalize(`[no output]${stdout.toString()}`) + normalize(`[no output]${stdout.toString()}`), ) }) }) @@ -712,7 +712,7 @@ context('lib/tasks/verify', () => { logger.error(err) snapshot( `${platform}: error when invalid CYPRESS_RUN_BINARY 1`, - normalize(stdout.toString()) + normalize(stdout.toString()), ) }) }) diff --git a/cli/test/support/normalize.js b/cli/test/support/normalize.js index 25e2d4b85a..777f7ccfc1 100644 --- a/cli/test/support/normalize.js +++ b/cli/test/support/normalize.js @@ -20,7 +20,7 @@ const normalize = (str) => { .split('\n') .map(removeExcessWhiteSpace) .join('\n') - .replace(downloadQueryRe, '?platform=OS&arch=ARCH') + .replace(downloadQueryRe, '?platform=OS&arch=ARCH'), ) } diff --git a/package.json b/package.json index 4460434dce..0debb67cf7 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "decaffeinate": "6.0.9", "del": "3.0.0", "electron-builder": "20.39.0", - "eslint": "6.1.0", + "eslint": "6.8.0", "eslint-plugin-cypress": "2.10.1", "eslint-plugin-json-format": "2.0.0", "eslint-plugin-mocha": "6.1.0", diff --git a/packages/desktop-gui/cypress/integration/setup_project_modal_spec.js b/packages/desktop-gui/cypress/integration/setup_project_modal_spec.js index 1489c7efa6..ec9ea46564 100644 --- a/packages/desktop-gui/cypress/integration/setup_project_modal_spec.js +++ b/packages/desktop-gui/cypress/integration/setup_project_modal_spec.js @@ -150,7 +150,7 @@ describe('Set Up Project', function () { it('selects personal org by default', function () { cy.get('.organizations-select').contains( - 'Your personal organization' + 'Your personal organization', ) cy.get('.privacy-radio').should('be.visible') diff --git a/packages/desktop-gui/src/projects/projects-api.js b/packages/desktop-gui/src/projects/projects-api.js index 1b7532422d..8c199d3e41 100644 --- a/packages/desktop-gui/src/projects/projects-api.js +++ b/packages/desktop-gui/src/projects/projects-api.js @@ -120,7 +120,7 @@ const closeProject = (project) => { return Promise.join( closeBrowser(project), - ipc.closeProject() + ipc.closeProject(), ) } diff --git a/packages/driver/src/cy/actionability.js b/packages/driver/src/cy/actionability.js index 8812c37214..dc14b73eb6 100644 --- a/packages/driver/src/cy/actionability.js +++ b/packages/driver/src/cy/actionability.js @@ -207,7 +207,7 @@ const ensureElIsNotCovered = function (cy, win, $el, fromElViewport, options, lo // start nudging return scrollContainers( - getAllScrollables([], $el) + getAllScrollables([], $el), ) } } diff --git a/packages/driver/src/cy/assertions.js b/packages/driver/src/cy/assertions.js index d3252ced10..d18dacbb82 100644 --- a/packages/driver/src/cy/assertions.js +++ b/packages/driver/src/cy/assertions.js @@ -113,7 +113,7 @@ const create = function (state, queue, retryFn) { return cmd.get('fn').originalFn.apply( state('ctx'), - [subject].concat(cmd.get('args')) + [subject].concat(cmd.get('args')), ) }) } diff --git a/packages/driver/src/cy/chai.js b/packages/driver/src/cy/chai.js index 6d89ca9cb4..cbed329059 100644 --- a/packages/driver/src/cy/chai.js +++ b/packages/driver/src/cy/chai.js @@ -54,8 +54,8 @@ chai.use((chai, u) => { 'chai.invalid_jquery_obj', { assertion: method, subject: $utils.stringifyActual(obj), - } - ) + }, + ), ) throw err @@ -282,7 +282,7 @@ chai.use((chai, u) => { obj.is(selector) || !!obj.find(selector).length, 'expected #{this} to contain #{exp}', 'expected #{this} not to contain #{exp}', - text + text, ) }) } @@ -324,7 +324,7 @@ chai.use((chai, u) => { `expected '${node}' to have a length of \#{exp} but got \#{act}`, `expected '${node}' to not have a length of \#{act}`, length, - obj.length + obj.length, ) } catch (e1) { e1.node = node @@ -384,7 +384,7 @@ chai.use((chai, u) => { 'expected \#{act} to exist in the DOM', 'expected \#{act} not to exist in the DOM', node, - node + node, ) } catch (e1) { e1.node = node diff --git a/packages/driver/src/cy/commands/actions/click.js b/packages/driver/src/cy/commands/actions/click.js index 52cf13413f..c1dd374a61 100644 --- a/packages/driver/src/cy/commands/actions/click.js +++ b/packages/driver/src/cy/commands/actions/click.js @@ -255,7 +255,7 @@ module.exports = (Commands, Cypress, cy, state, config) => { formatMouseEvents(domEvents.clickEvents[1]), formatMouseEvents({ dblclick: domEvents.dblclick, - }) + }), ), } }, @@ -286,7 +286,7 @@ module.exports = (Commands, Cypress, cy, state, config) => { data: _.concat( formatMouseEvents(domEvents.moveEvents.events), formatMouseEvents(domEvents.clickEvents), - formatMouseEvents(domEvents.contextmenuEvent) + formatMouseEvents(domEvents.contextmenuEvent), ), } }, diff --git a/packages/driver/src/cy/commands/actions/type.js b/packages/driver/src/cy/commands/actions/type.js index b3809ed97d..ccf55008c8 100644 --- a/packages/driver/src/cy/commands/actions/type.js +++ b/packages/driver/src/cy/commands/actions/type.js @@ -528,6 +528,6 @@ module.exports = function (Commands, Cypress, cy, state, config) { { type, clear, - } + }, ) } diff --git a/packages/driver/src/cy/keyboard.ts b/packages/driver/src/cy/keyboard.ts index 0a6eaa2b73..820bff45b9 100644 --- a/packages/driver/src/cy/keyboard.ts +++ b/packages/driver/src/cy/keyboard.ts @@ -231,7 +231,7 @@ const shouldIgnoreEvent = < K extends { [key in T]?: boolean } >( eventName: T, - options: K + options: K, ) => { return options[eventName] === false } @@ -312,7 +312,7 @@ const validateTyping = ( currentIndex: number, onFail: Function, skipCheckUntilIndex: number | undefined, - force: boolean + force: boolean, ) => { const chars = joinKeyArrayToString(keys.slice(currentIndex)) const allChars = joinKeyArrayToString(keys) @@ -652,13 +652,13 @@ export class Keyboard { // ignore empty strings return _.filter(_.split(chars, '')) - } + }, ) } const keyDetailsArr = _.map( keys, - getKeyDetails(options.onNoMatchingSpecialChars) + getKeyDetails(options.onNoMatchingSpecialChars), ) const numKeys = countNumIndividualKeyStrokes(keyDetailsArr) @@ -694,7 +694,7 @@ export class Keyboard { currentKeyIndex, options.onFail, _skipCheckUntilIndex, - options.force + options.force, ) _skipCheckUntilIndex = skipCheckUntilIndex @@ -725,7 +725,7 @@ export class Keyboard { return $elements.setNativeProp( activeEl as $elements.HTMLTextLikeInputElement, 'value', - valToSet + valToSet, ) } } @@ -744,7 +744,7 @@ export class Keyboard { return null } - } + }, ) // we will only press each modifier once, so only find unique modifiers @@ -778,7 +778,7 @@ export class Keyboard { el: HTMLElement, eventType: KeyEventType, keyDetails: KeyDetails, - opts: typeOptions + opts: typeOptions, ) { debug('fireSimulatedEvent', eventType, keyDetails) @@ -874,7 +874,7 @@ export class Keyboard { detail: 0, view: win, }, - _.isUndefined + _.isUndefined, ), } @@ -890,7 +890,7 @@ export class Keyboard { eventOptions.cancelable, eventOptions.view, eventOptions.data, - 1 + 1, // eventOptions.locale ) /*1: IE11 Input method param*/ @@ -991,7 +991,7 @@ export class Keyboard { debug( 'typeSimulatedKey options:', - _.pick(options, ['keydown', 'keypress', 'textInput', 'input', 'id']) + _.pick(options, ['keydown', 'keypress', 'textInput', 'input', 'id']), ) if ( diff --git a/packages/driver/src/cy/mouse.js b/packages/driver/src/cy/mouse.js index 03ae308c6e..ff38a13797 100644 --- a/packages/driver/src/cy/mouse.js +++ b/packages/driver/src/cy/mouse.js @@ -408,7 +408,7 @@ const create = (state, keyboard, focused, Cypress) => { // TODO: pointer events should have fractional coordinates, not rounded let pointerdown = sendPointerdown( el, - pointerEvtOptions + pointerEvtOptions, ) const pointerdownPrevented = pointerdown.preventedDefault diff --git a/packages/driver/src/cypress/chai_jquery.js b/packages/driver/src/cypress/chai_jquery.js index 62f391816f..8cff7ffd33 100644 --- a/packages/driver/src/cypress/chai_jquery.js +++ b/packages/driver/src/cypress/chai_jquery.js @@ -73,7 +73,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { _.includes(actual, expected), `expected #{this} to contain ${message}`, `expected #{this} not to contain ${notMessage}`, - ...args + ...args, ) } @@ -83,7 +83,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { actual === expected, `expected #{this} to have ${message}`, `expected #{this} not to have ${notMessage}`, - ...args + ...args, ) } @@ -106,7 +106,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { wrap(this).hasClass(className), 'expected #{this} to have class #{exp}', 'expected #{this} not to have class #{exp}', - className + className, ) }) @@ -117,7 +117,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { wrap(this).prop('id') === id, 'expected #{this} to have id #{exp}', 'expected #{this} not to have id #{exp}', - id + id, ) }) @@ -127,7 +127,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { 'html', 'expected #{this} to have HTML #{exp}', 'expected #{this} not to have HTML #{exp}', - html + html, ) const actual = wrap(this).html() @@ -140,7 +140,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { 'HTML #{exp}, but the HTML was #{act}', 'HTML #{exp}', html, - actual + actual, ) }) @@ -150,7 +150,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { 'text', 'expected #{this} to have text #{exp}', 'expected #{this} not to have text #{exp}', - text + text, ) const actual = wrap(this).text() @@ -163,7 +163,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { 'text #{exp}, but the text was #{act}', 'text #{exp}', text, - actual + actual, ) }) @@ -173,7 +173,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { 'value', 'expected #{this} to have value #{exp}', 'expected #{this} not to have value #{exp}', - value + value, ) const actual = wrap(this).val() @@ -186,7 +186,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { 'value #{exp}, but the value was #{act}', 'value #{exp}', value, - actual + actual, ) }) @@ -197,7 +197,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { wrap(this).has(selector).length > 0, 'expected #{this} to have descendants #{exp}', 'expected #{this} not to have descendants #{exp}', - selector + selector, ) }) @@ -210,7 +210,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { wrap(this).is(':empty'), 'expected #{this} to be #{exp}', 'expected #{this} not to be #{exp}', - 'empty' + 'empty', ) } @@ -229,7 +229,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { wrap(this).is(selector), 'expected #{this} to match #{exp}', 'expected #{this} not to match #{exp}', - selector + selector, ) } @@ -245,7 +245,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { wrap(this).is(`:${selector}`), 'expected #{this} to be #{exp}', 'expected #{this} not to be #{exp}', - selectorName + selectorName, ) }) }) @@ -257,7 +257,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { attr, `expected #{this} to have ${description} #{exp}`, `expected #{this} not to have ${description} #{exp}`, - name + name, ) const actual = wrap(this)[attr](name) @@ -270,7 +270,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { actual !== undefined, `expected #{this} to have ${description} #{exp}`, `expected #{this} not to have ${description} #{exp}`, - name + name, ) // change the subject @@ -297,7 +297,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => { message, negatedMessage, val, - actual + actual, ) } diff --git a/packages/driver/src/cypress/cy.js b/packages/driver/src/cypress/cy.js index b490a1766b..840c64e571 100644 --- a/packages/driver/src/cypress/cy.js +++ b/packages/driver/src/cypress/cy.js @@ -369,7 +369,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) { current: command.get('name'), called: enqueuedCmd.name, }, - } + }, ) } @@ -390,7 +390,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) { current: command.get('name'), returned: ret, }, - } + }, ) } @@ -988,7 +988,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) { current: current.get('name'), called: name, }, - } + }, ) } } @@ -1033,7 +1033,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) { now (name, ...args) { return Promise.resolve( - commandFns[name].apply(cy, args) + commandFns[name].apply(cy, args), ) }, diff --git a/packages/driver/src/cypress/runner.js b/packages/driver/src/cypress/runner.js index e4f4ef2cea..3d9d606f51 100644 --- a/packages/driver/src/cypress/runner.js +++ b/packages/driver/src/cypress/runner.js @@ -169,7 +169,7 @@ const wrapAll = (runnable) => { return _.extend( {}, $utils.reduceProps(runnable, RUNNABLE_PROPS), - $utils.reduceProps(runnable, RUNNABLE_LOGS) + $utils.reduceProps(runnable, RUNNABLE_LOGS), ) } @@ -743,7 +743,7 @@ const _runnerListeners = function (_runner, Cypress, _emissions, getTestById, ge $errUtils.errMsgByPath('uncaught.error_in_hook', { parentTitle, hookName, - }) + }), ) } @@ -914,7 +914,7 @@ const create = function (specWindow, mocha, Cypress, cy) { setTests, onRunnable, onLogsById, - getTestId + getTestId, ) }, diff --git a/packages/driver/src/dom/elements.ts b/packages/driver/src/dom/elements.ts index 38fc01b010..8d0fd1867d 100644 --- a/packages/driver/src/dom/elements.ts +++ b/packages/driver/src/dom/elements.ts @@ -562,7 +562,7 @@ const isDisabled = ($el: JQuery) => { } const isReadOnlyInputOrTextarea = ( - el: HTMLInputElement | HTMLTextAreaElement + el: HTMLInputElement | HTMLTextAreaElement, ) => { return el.readOnly } diff --git a/packages/driver/src/dom/selection.ts b/packages/driver/src/dom/selection.ts index 37af392575..f5d69a0a33 100644 --- a/packages/driver/src/dom/selection.ts +++ b/packages/driver/src/dom/selection.ts @@ -270,7 +270,7 @@ const deleteLeftOfCursor = function (el) { 'modify', 'extend', 'backward', - 'character' + 'character', ) } diff --git a/packages/driver/test/cypress/integration/commands/assertions_spec.js b/packages/driver/test/cypress/integration/commands/assertions_spec.js index 05b8859f34..0cd8d4621e 100644 --- a/packages/driver/test/cypress/integration/commands/assertions_spec.js +++ b/packages/driver/test/cypress/integration/commands/assertions_spec.js @@ -1061,7 +1061,7 @@ describe('src/cy/commands/assertions', () => { () => expect(`\'cypress\'`).to.eq(`\'cypress\'`), // ****'cypress'**** -> ** for emphasizing result string + ** for emphasizing the entire result. `expected **'cypress'** to equal ****'cypress'****`, - done + done, ) }) @@ -1073,7 +1073,7 @@ describe('src/cy/commands/assertions', () => { }) }, `expected **** to contain **div**`, - done + done, ) }) @@ -1085,7 +1085,7 @@ describe('src/cy/commands/assertions', () => { expectMarkdown( () => expect({ foo: 'bar' }).to.deep.eq({ foo: 'bar' }), `expected **{ foo: bar }** to deeply equal **{ foo: bar }**`, - done + done, ) }) @@ -1098,7 +1098,7 @@ describe('src/cy/commands/assertions', () => { expectMarkdown( () => expect(person).to.have.all.keys('name', 'age'), `expected **{ name: Joe, age: 20 }** to have keys **name**, and **age**`, - done + done, ) }) @@ -1349,11 +1349,11 @@ describe('src/cy/commands/assertions', () => { const l3 = this.logs[2] expect(l1.get('message')).to.eq( - 'expected **** to have class **foo**' + 'expected **** to have class **foo**', ) expect(l3.get('message')).to.eq( - 'expected **** not to have class **baz**' + 'expected **** not to have class **baz**', ) }) @@ -1361,7 +1361,7 @@ describe('src/cy/commands/assertions', () => { cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected \'foo\' to have class \'bar\'' + 'expected \'foo\' to have class \'bar\'', ) expect(err.message).to.include('> class') @@ -1420,11 +1420,11 @@ describe('src/cy/commands/assertions', () => { const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **** to have id **foo**' + 'expected **** to have id **foo**', ) expect(l2.get('message')).to.eq( - 'expected **** not to have id **bar**' + 'expected **** not to have id **bar**', ) }) @@ -1432,7 +1432,7 @@ describe('src/cy/commands/assertions', () => { cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected [] to have id \'foo\'' + 'expected [] to have id \'foo\'', ) expect(err.message).to.include('> id') @@ -1462,23 +1462,23 @@ describe('src/cy/commands/assertions', () => { const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **
** to have HTML ****' + 'expected **
** to have HTML ****', ) expect(l2.get('message')).to.eq( - 'expected **
** not to have HTML **foo**' + 'expected **
** not to have HTML **foo**', ) this.clearLogs() expect(this.$div).to.contain.html('**' + 'expected **
** to have HTML **span**, but the HTML was ****', ) } @@ -1495,7 +1495,7 @@ describe('src/cy/commands/assertions', () => { expect(this.$div).to.contain.html('span') } catch (error1) { expect(this.logs[0].get('message')).to.eq( - 'expected **
** to contain HTML **span**, but the HTML was ****' + 'expected **
** to contain HTML **span**, but the HTML was ****', ) } }) @@ -1504,7 +1504,7 @@ describe('src/cy/commands/assertions', () => { cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected null to have HTML \'foo\'' + 'expected null to have HTML \'foo\'', ) expect(err.message).to.include('> html') @@ -1543,23 +1543,23 @@ describe('src/cy/commands/assertions', () => { const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **
** to have text **foo**' + 'expected **
** to have text **foo**', ) expect(l2.get('message')).to.eq( - 'expected **
** not to have text **bar**' + 'expected **
** not to have text **bar**', ) this.clearLogs() expect(this.$div).to.contain.text('f') expect(this.logs[0].get('message')).to.eq( - 'expected **
** to contain text **f**' + 'expected **
** to contain text **f**', ) this.clearLogs() expect(this.$div).to.not.contain.text('foob') expect(this.logs[0].get('message')).to.eq( - 'expected **
** not to contain text **foob**' + 'expected **
** not to contain text **foob**', ) this.clearLogs() @@ -1567,7 +1567,7 @@ describe('src/cy/commands/assertions', () => { expect(this.$div).to.have.text('bar') } catch (error) { expect(this.logs[0].get('message')).to.eq( - 'expected **
** to have text **bar**, but the text was **foo**' + 'expected **
** to have text **bar**, but the text was **foo**', ) } @@ -1576,7 +1576,7 @@ describe('src/cy/commands/assertions', () => { expect(this.$div).to.contain.text('bar') } catch (error1) { expect(this.logs[0].get('message')).to.eq( - 'expected **
** to contain text **bar**, but the text was **foo**' + 'expected **
** to contain text **bar**, but the text was **foo**', ) } }) @@ -1594,7 +1594,7 @@ describe('src/cy/commands/assertions', () => { cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected undefined to have text \'foo\'' + 'expected undefined to have text \'foo\'', ) expect(err.message).to.include('> text') @@ -1625,23 +1625,23 @@ describe('src/cy/commands/assertions', () => { const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **** to have value **foo**' + 'expected **** to have value **foo**', ) expect(l2.get('message')).to.eq( - 'expected **** not to have value **bar**' + 'expected **** not to have value **bar**', ) this.clearLogs() expect(this.$input).to.contain.value('foo') expect(this.logs[0].get('message')).to.eq( - 'expected **** to contain value **foo**' + 'expected **** to contain value **foo**', ) this.clearLogs() expect(this.$input).not.to.contain.value('bar') expect(this.logs[0].get('message')).to.eq( - 'expected **** not to contain value **bar**' + 'expected **** not to contain value **bar**', ) this.clearLogs() @@ -1649,7 +1649,7 @@ describe('src/cy/commands/assertions', () => { expect(this.$input).to.have.value('bar') } catch (error) { expect(this.logs[0].get('message')).to.eq( - 'expected **** to have value **bar**, but the value was **foo**' + 'expected **** to have value **bar**, but the value was **foo**', ) } @@ -1658,7 +1658,7 @@ describe('src/cy/commands/assertions', () => { expect(this.$input).to.contain.value('bar') } catch (error1) { expect(this.logs[0].get('message')).to.eq( - 'expected **** to contain value **bar**, but the value was **foo**' + 'expected **** to contain value **bar**, but the value was **foo**', ) } }) @@ -1667,7 +1667,7 @@ describe('src/cy/commands/assertions', () => { cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected {} to have value \'foo\'' + 'expected {} to have value \'foo\'', ) expect(err.message).to.include('> value') @@ -1723,11 +1723,11 @@ describe('src/cy/commands/assertions', () => { const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **
** to have descendants **button**' + 'expected **
** to have descendants **button**', ) expect(l2.get('message')).to.eq( - 'expected **
** not to have descendants **input**' + 'expected **
** not to have descendants **input**', ) }) @@ -1735,7 +1735,7 @@ describe('src/cy/commands/assertions', () => { cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected {} to have descendants \'foo\'' + 'expected {} to have descendants \'foo\'', ) expect(err.message).to.include('> descendants') @@ -1777,11 +1777,11 @@ describe('src/cy/commands/assertions', () => { const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **
** to be **visible**' + 'expected **
** to be **visible**', ) expect(l2.get('message')).to.eq( - 'expected **
** not to be **visible**' + 'expected **
** not to be **visible**', ) try { @@ -1795,7 +1795,7 @@ describe('src/cy/commands/assertions', () => { expected '
' to be 'visible' This element '
' is not visible because it has CSS property: 'display: none'\ -` +`, ) } }) @@ -1804,7 +1804,7 @@ This element '
' is not visible because it has CSS property: 'display: none' cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected {} to be \'visible\'' + 'expected {} to be \'visible\'', ) expect(err.message).to.include('> visible') @@ -1846,11 +1846,11 @@ This element '
' is not visible because it has CSS property: 'display: none' const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **
** to be **hidden**' + 'expected **
** to be **hidden**', ) expect(l2.get('message')).to.eq( - 'expected **
** not to be **hidden**' + 'expected **
** not to be **hidden**', ) try { @@ -1867,7 +1867,7 @@ This element '
' is not visible because it has CSS property: 'display: none' cy.on('fail', (err) => { expect(this.logs.length).to.eq(1) expect(this.logs[0].get('error').message).to.eq( - 'expected {} to be \'hidden\'' + 'expected {} to be \'hidden\'', ) expect(err.message).to.include('> hidden') @@ -1903,11 +1903,11 @@ This element '
' is not visible because it has CSS property: 'display: none' const l2 = this.logs[1] expect(l1.get('message')).to.eq( - 'expected **