Skip to content

Commit

Permalink
decaffeinate: Run post-processing cleanups on runner_spec.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb committed Sep 9, 2019
1 parent 65f414a commit 1710157
Showing 1 changed file with 28 additions and 30 deletions.
58 changes: 28 additions & 30 deletions packages/driver/test/cypress/integration/cypress/runner_spec.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const pending = [];

Cypress.on("test:after:run", function(test) {
if (test.state === "pending") {
return pending.push(test);
const pending = []

Cypress.on('test:after:run', (test) => {
if (test.state === 'pending') {
return pending.push(test)
}
});
})

describe('src/cypress/runner', () => {
it('handles "double quotes" in test name', (done) => {
cy.once('log:added', (log) => {
expect(log.hookName).to.equal('test')

return done()
})

return cy.wrap({})
})

describe("src/cypress/runner", function() {
it('handles "double quotes" in test name', function(done) {
cy.once("log:added", function(log) {
expect(log.hookName).to.equal("test");
return done();
});
return cy.wrap({});
});
context('pending tests', () => {
it('is not pending', () => {})

return context("pending tests", function() {
it("is not pending", function() {});
it('is pending 1')

it("is pending 1");
it('is pending 2')

it("is pending 2");
it('has 2 pending tests', () => {
expect(pending).to.have.length(2)

return it("has 2 pending tests", function() {
expect(pending).to.have.length(2);
expect(pending[0].title).to.eq('is pending 1')

expect(pending[0].title).to.eq("is pending 1");
return expect(pending[1].title).to.eq("is pending 2");
});
});
});
expect(pending[1].title).to.eq('is pending 2')
})
})
})

4 comments on commit 1710157

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1710157 Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.5.0/linux-x64/circle-develop-171015736e60de334ddefb64ffaa6374cd550061-150213/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.5.0/circle-develop-171015736e60de334ddefb64ffaa6374cd550061-150212/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1710157 Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.5.0/win32-ia32/appveyor-develop-171015736e60de334ddefb64ffaa6374cd550061-27288866/cypress.zip
npm install https://cdn.cypress.io/beta/binary/3.5.0/win32-ia32/appveyor-develop-171015736e60de334ddefb64ffaa6374cd550061-27288866/cypress.zip

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1710157 Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.5.0/win32-x64/appveyor-develop-171015736e60de334ddefb64ffaa6374cd550061-27288866/cypress.zip
npm install https://cdn.cypress.io/beta/binary/3.5.0/win32-x64/appveyor-develop-171015736e60de334ddefb64ffaa6374cd550061-27288866/cypress.zip

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1710157 Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.5.0/darwin-x64/circle-develop-171015736e60de334ddefb64ffaa6374cd550061-150226/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.5.0/circle-develop-171015736e60de334ddefb64ffaa6374cd550061-150225/cypress.tgz

Please sign in to comment.