Skip to content

Commit 6ca08f1

Browse files
authored
[5.2][Cypress] Minor Code Simplicifcation (#44780)
Since `setSefDefaults` already returns a Promise (which Cypress understands and waits for), there's no need to wrap it in an anonymous function. Therefore, the code is simplified for more beauty. Thanks to @laoneo for the hint.
1 parent 9956abc commit 6ca08f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/System/integration/plugins/system/sef/SefPlugin.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ describe('Test that the sef system plugin', () => {
99
.then(() => cy.db_updateExtensionParameter('strictrouting', '1', 'plg_system_sef'));
1010

1111
// Ensure that we always start with a clean SEF default state
12-
beforeEach(() => setSefDefaults());
12+
beforeEach(setSefDefaults);
1313

1414
// Return to the clean SEF default state for subsequent Joomla System Tests
15-
afterEach(() => setSefDefaults());
15+
afterEach(setSefDefaults);
1616

1717
it('can process if option \'sef\' disabled', () => {
1818
cy.config_setParameter('sef', false)

0 commit comments

Comments
 (0)