Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement user import from CSV in Workspace #909

Merged
merged 12 commits into from
Dec 5, 2024
Prev Previous commit
Next Next commit
test: Adapt all js tests for the new feature
zak39 committed Dec 5, 2024
commit d2472906b5000a56f3866de7867b1dd527b0f237
3 changes: 3 additions & 0 deletions src/tests/jest.setup.js
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import 'regenerator-runtime/runtime.js'
/* eslint-disable-next-line */
import { OC } from './OC.js'
import { config } from '@vue/test-utils'
import mockAxios from 'jest-mock-axios'

document.title = 'Standard Nextcloud title'

@@ -28,3 +29,5 @@ global.console = {
}

global.OCA = {}

jest.mock('@nextcloud/axios', () => mockAxios)
6 changes: 3 additions & 3 deletions src/tests/unit/spaceService.test.js
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ describe('transferUsersToUserGroup method', () => {
'SPACE-U-1',
'dev',
],
role: 'admin',
role: 'wm',
},
bob: {
uid: 'bob',
@@ -102,7 +102,7 @@ describe('transferUsersToUserGroup method', () => {
'SPACE-U-1',
'dev',
],
role: 'admin',
role: 'wm',
},
jane: {
uid: 'jane',
@@ -114,7 +114,7 @@ describe('transferUsersToUserGroup method', () => {
'SPACE-U-1',
'dev',
],
role: 'admin',
role: 'wm',
},
user2: {
uid: 'user2',
2 changes: 1 addition & 1 deletion src/tests/unit/store.test.js
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ describe('Vuex store tests', () => {
'GE-test-space',
'yolo-1234',
],
role: 'admin',
role: 'wm',
},
],
},