Skip to content

Commit 930b4da

Browse files
Blue Fmjhenkes
andauthored
Update packages/driver/cypress/e2e/cypress/cy.cy.js
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
1 parent 4f07301 commit 930b4da

File tree

1 file changed

+3
-3
lines changed
  • packages/driver/cypress/e2e/cypress

1 file changed

+3
-3
lines changed

packages/driver/cypress/e2e/cypress/cy.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ describe('driver/src/cypress/cy', () => {
136136

137137
it('supports cy.state(\'subject\') for backwards compatability', () => {
138138
cy.stub(Cypress.utils, 'warning')
139-
const a = {}
139+
const subject = {}
140140

141-
cy.wrap(a).then(() => {
142-
expect(cy.state('subject')).to.equal(a)
141+
cy.wrap(subject).then(() => {
142+
expect(cy.state('subject')).to.equal(subject)
143143
expect(Cypress.utils.warning).to.be.calledWith('`cy.state(\'subject\')` has been deprecated and will be removed in a future release. Consider migrating to `cy.currentSubject()` instead.')
144144
})
145145
})

0 commit comments

Comments
 (0)