-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decaffeinate: Run post-processing cleanups on runner_spec.coffee
- Loading branch information
Showing
1 changed file
with
28 additions
and
30 deletions.
There are no files selected for viewing
58 changes: 28 additions & 30 deletions
58
packages/driver/test/cypress/integration/cypress/runner_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
}) | ||
}) | ||
}) |
1710157
There was a problem hiding this comment.
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.1710157
There was a problem hiding this comment.
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.1710157
There was a problem hiding this comment.
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.1710157
There was a problem hiding this comment.
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.