Skip to content

Commit 8cb068c

Browse files
NikolausDemmelnextcloud-command
authored andcommitted
chore(tests): Fix linting errors in users_groups_display_name test
Signed-off-by: Nikolaus Demmel <nikolaus@nikolaus-demmel.de>
1 parent cad9a23 commit 8cb068c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cypress/e2e/settings/users_groups_display_name.cy.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
*/
1111

1212
import { User } from '@nextcloud/cypress'
13-
import { getUserListRow, handlePasswordConfirmation, toggleEditButton } from './usersUtils'
14-
15-
// eslint-disable-next-line n/no-extraneous-import
1613
import randomString from 'crypto-random-string'
14+
import { getUserListRow, handlePasswordConfirmation, toggleEditButton } from './usersUtils.ts'
1715

1816
const admin = new User('admin', 'admin')
1917

@@ -33,8 +31,7 @@ describe('Settings: Group names persist after reload (issue #55785)', () => {
3331
// (this confirms our test case is valid)
3432
cy.runOccCommand('group:list --output=json').then((result) => {
3533
const groups = JSON.parse(result.stdout)
36-
const groupEntry = Object.entries(groups).find(([, displayName]) =>
37-
(displayName as string).includes(randomPart)
34+
const groupEntry = Object.entries(groups).find(([, displayName]) => (displayName as string).includes(randomPart),
3835
)
3936
if (groupEntry) {
4037
const [groupId, displayName] = groupEntry

0 commit comments

Comments
 (0)