Skip to content

Commit c88be91

Browse files
committed
decaffeinate: Run post-processing cleanups on check_spec.coffee and 9 other files
check_spec.js focus_spec.js hover_spec.js scroll_spec.js select_spec.js submit_spec.js agents_spec.js aliasing_spec.js angular_spec.js decaffeinate: Run post-processing cleanups on trigger_spec.coffee
1 parent a38737b commit c88be91

File tree

10 files changed

+5978
-5364
lines changed

10 files changed

+5978
-5364
lines changed

packages/driver/test/cypress/integration/commands/actions/check_spec.js

Lines changed: 1044 additions & 959 deletions
Large diffs are not rendered by default.

packages/driver/test/cypress/integration/commands/actions/focus_spec.js

Lines changed: 775 additions & 674 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
1-
/*
2-
* decaffeinate suggestions:
3-
* DS102: Remove unnecessary code created because of implicit returns
4-
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
5-
*/
6-
const $ = Cypress.$.bind(Cypress);
7-
const {
8-
_
9-
} = Cypress;
1+
const $ = Cypress.$.bind(Cypress)
102

11-
describe("src/cy/commands/actions/hover", function() {
12-
before(() => cy
13-
.visit("/fixtures/dom.html")
14-
.then(function(win) {
15-
return this.body = win.document.body.outerHTML;
16-
}));
3+
describe('src/cy/commands/actions/hover', () => {
4+
before(() => {
5+
cy
6+
.visit('/fixtures/dom.html')
7+
.then(function (win) {
8+
this.body = win.document.body.outerHTML
9+
})
10+
})
1711

18-
beforeEach(function() {
19-
const doc = cy.state("document");
12+
beforeEach(function () {
13+
const doc = cy.state('document')
2014

21-
return $(doc.body).empty().html(this.body);
22-
});
15+
$(doc.body).empty().html(this.body)
16+
})
2317

24-
return context("#hover", () => it("throws when invoking", function(done) {
25-
cy.on("fail", function(err) {
26-
expect(err.message).to.include("`cy.hover()` is not currently implemented.");
27-
expect(err.docsUrl).to.eq("https://on.cypress.io/hover");
28-
return done();
29-
});
18+
context('#hover', () => {
19+
it('throws when invoking', (done) => {
20+
cy.on('fail', (err) => {
21+
expect(err.message).to.include('`cy.hover()` is not currently implemented.')
22+
expect(err.docsUrl).to.eq('https://on.cypress.io/hover')
3023

31-
return cy.get("button").hover();
32-
}));
33-
});
24+
done()
25+
})
26+
27+
cy.get('button').hover()
28+
})
29+
})
30+
})

0 commit comments

Comments
 (0)