From f53f7dfa7bc9dc78a6e4a834cc4373b418799f4c Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Sun, 12 May 2024 09:42:11 +0200 Subject: [PATCH] test: fix test property ordering --- tests-legacy/lib/rules/unsafe-to-chain-command.js | 4 ++-- tests/lib/rules/unsafe-to-chain-command.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests-legacy/lib/rules/unsafe-to-chain-command.js b/tests-legacy/lib/rules/unsafe-to-chain-command.js index 470bebd..901d878 100644 --- a/tests-legacy/lib/rules/unsafe-to-chain-command.js +++ b/tests-legacy/lib/rules/unsafe-to-chain-command.js @@ -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/] }], }, ], }) diff --git a/tests/lib/rules/unsafe-to-chain-command.js b/tests/lib/rules/unsafe-to-chain-command.js index 945badb..fc97aa9 100644 --- a/tests/lib/rules/unsafe-to-chain-command.js +++ b/tests/lib/rules/unsafe-to-chain-command.js @@ -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, }, ], })