|
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) |
10 | 2 |
|
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 | + }) |
17 | 11 |
|
18 |
| - beforeEach(function() { |
19 |
| - const doc = cy.state("document"); |
| 12 | + beforeEach(function () { |
| 13 | + const doc = cy.state('document') |
20 | 14 |
|
21 |
| - return $(doc.body).empty().html(this.body); |
22 |
| - }); |
| 15 | + $(doc.body).empty().html(this.body) |
| 16 | + }) |
23 | 17 |
|
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') |
30 | 23 |
|
31 |
| - return cy.get("button").hover(); |
32 |
| - })); |
33 |
| -}); |
| 24 | + done() |
| 25 | + }) |
| 26 | + |
| 27 | + cy.get('button').hover() |
| 28 | + }) |
| 29 | + }) |
| 30 | +}) |
0 commit comments