Skip to content

Commit

Permalink
test: fix test property ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed May 12, 2024
1 parent 0a70707 commit f53f7df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests-legacy/lib/rules/unsafe-to-chain-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ ruleTester.run('action-ends-chain', rule, {
},
{
code: 'cy.get("new-todo").customType("todo A{enter}").customClick();',
options: [{ methods: ['customType', 'customClick'] }],
parserOptions,
errors,
options: [{ methods: ['customType', 'customClick'] }],
},
{
code: 'cy.get("new-todo").customPress("Enter").customScroll();',
options: [{ methods: [/customPress/, /customScroll/] }],
parserOptions,
errors,
options: [{ methods: [/customPress/, /customScroll/] }],
},
],
})
4 changes: 2 additions & 2 deletions tests/lib/rules/unsafe-to-chain-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ ruleTester.run('action-ends-chain', rule, {
{ code: 'cy.get("new-todo").focus().should("have.class", "active");', errors },
{
code: 'cy.get("new-todo").customType("todo A{enter}").customClick();',
errors,
options: [{ methods: ['customType', 'customClick'] }],
errors,
},
{
code: 'cy.get("new-todo").customPress("Enter").customScroll();',
errors,
options: [{ methods: ['customPress', 'customScroll'] }],
errors,
},
],
})

0 comments on commit f53f7df

Please sign in to comment.