@@ -49,9 +53,13 @@
{{ user.email }}
- {{ t('workspace', $store.getters.isSpaceAdmin(user, $route.params.space) ? 'admin' : 'user') }} |
- {{ user.groups.map(group => $store.getters.groupName($route.params.space, group)).join(', ') }} |
-
+ |
+ {{ t('workspace', $store.getters.isSpaceAdmin(user, $route.params.space) ? 'admin' : 'user') }}
+ |
+
+ {{ user.groups.map(group => $store.getters.groupName($route.params.space, group)).join(', ') }}
+ |
+
mockAxios)
diff --git a/src/tests/unit/selectUsers.test.js b/src/tests/unit/addUsersTabs.test.js
similarity index 94%
rename from src/tests/unit/selectUsers.test.js
rename to src/tests/unit/addUsersTabs.test.js
index 01df2446..bc4de553 100644
--- a/src/tests/unit/selectUsers.test.js
+++ b/src/tests/unit/addUsersTabs.test.js
@@ -23,7 +23,7 @@
import { createLocalVue, mount } from '@vue/test-utils'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
-import SelectUsers from '../../SelectUsers.vue'
+import AddUsersTabs from '../../AddUsersTabs.vue'
import Vue from 'vue'
import VueRouter from 'vue-router'
import Vuex from 'vuex'
@@ -36,7 +36,7 @@ const localVue = createLocalVue()
const router = new VueRouter()
localVue.use(Vuex)
localVue.use(VueRouter)
-const wrappedSelectUsers = mount(SelectUsers, {
+const wrappedSelectUsers = mount(AddUsersTabs, {
store,
localVue,
router,
@@ -44,7 +44,7 @@ const wrappedSelectUsers = mount(SelectUsers, {
// const expect = require('chai').expect
-describe('SelectUsers component tests', () => {
+describe('AddUsersTabs component tests', () => {
wrappedSelectUsers.vm.$store.commit('addSpace', {
color: '#3794ac',
@@ -78,7 +78,7 @@ describe('SelectUsers component tests', () => {
email: 'admin@acme.org',
subtitle: 'admin@acme.org',
groups: [],
- role: 'admin',
+ role: 'wm',
},
]
@@ -119,7 +119,7 @@ describe('SelectUsers component tests', () => {
email: 'admin@acme.org',
subtitle: 'admin@acme.org',
groups: [],
- role: 'admin',
+ role: 'wm',
},
]
diff --git a/src/tests/unit/spaceService.test.js b/src/tests/unit/spaceService.test.js
index 469f02f0..4c151eeb 100644
--- a/src/tests/unit/spaceService.test.js
+++ b/src/tests/unit/spaceService.test.js
@@ -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',
diff --git a/src/tests/unit/store.test.js b/src/tests/unit/store.test.js
index 0d10c004..30c602d3 100644
--- a/src/tests/unit/store.test.js
+++ b/src/tests/unit/store.test.js
@@ -52,7 +52,7 @@ describe('Vuex store tests', () => {
'GE-test-space',
'yolo-1234',
],
- role: 'admin',
+ role: 'wm',
},
],
},
|