mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Grouped same definition in a constant.
This commit is contained in:
parent
4541916472
commit
f7e9d7bf74
@ -6,9 +6,7 @@ const localVue = global.localVue
|
|||||||
describe('UserTable', () => {
|
describe('UserTable', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
const propsDataPageUserSearch = {
|
const defaultItemsUser = [
|
||||||
type: 'PageUserSearch',
|
|
||||||
itemsUser: [
|
|
||||||
{
|
{
|
||||||
email: 'bibi@bloxberg.de',
|
email: 'bibi@bloxberg.de',
|
||||||
firstName: 'Bibi',
|
firstName: 'Bibi',
|
||||||
@ -27,65 +25,9 @@ describe('UserTable', () => {
|
|||||||
lastName: 'Bloxberg',
|
lastName: 'Bloxberg',
|
||||||
creation: [1000, 1000, 1000],
|
creation: [1000, 1000, 1000],
|
||||||
},
|
},
|
||||||
],
|
]
|
||||||
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
|
||||||
}
|
|
||||||
|
|
||||||
const propsDataUserListSearch = {
|
const confirmationItemsUser = [
|
||||||
type: 'UserListSearch',
|
|
||||||
itemsUser: [
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
}
|
|
||||||
|
|
||||||
const propsDataUserListMassCreation = {
|
|
||||||
type: 'UserListMassCreation',
|
|
||||||
itemsUser: [
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
|
||||||
creation: [1000, 1000, 1000],
|
|
||||||
}
|
|
||||||
|
|
||||||
const propsDataPageCreationConfirm = {
|
|
||||||
type: 'PageCreationConfirm',
|
|
||||||
itemsUser: [
|
|
||||||
{
|
{
|
||||||
email: 'bibi@bloxberg.de',
|
email: 'bibi@bloxberg.de',
|
||||||
firstName: 'Bibi',
|
firstName: 'Bibi',
|
||||||
@ -113,7 +55,31 @@ describe('UserTable', () => {
|
|||||||
date: '30-09-2001',
|
date: '30-09-2001',
|
||||||
moderator: 1,
|
moderator: 1,
|
||||||
},
|
},
|
||||||
],
|
]
|
||||||
|
|
||||||
|
const propsDataPageUserSearch = {
|
||||||
|
type: 'PageUserSearch',
|
||||||
|
itemsUser: defaultItemsUser,
|
||||||
|
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
||||||
|
}
|
||||||
|
|
||||||
|
const propsDataUserListSearch = {
|
||||||
|
type: 'UserListSearch',
|
||||||
|
itemsUser: defaultItemsUser,
|
||||||
|
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
||||||
|
creation: [1000, 1000, 1000],
|
||||||
|
}
|
||||||
|
|
||||||
|
const propsDataUserListMassCreation = {
|
||||||
|
type: 'UserListMassCreation',
|
||||||
|
itemsUser: defaultItemsUser,
|
||||||
|
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
||||||
|
creation: [1000, 1000, 1000],
|
||||||
|
}
|
||||||
|
|
||||||
|
const propsDataPageCreationConfirm = {
|
||||||
|
type: 'PageCreationConfirm',
|
||||||
|
itemsUser: confirmationItemsUser,
|
||||||
fieldsTable: ['email', 'firstName', 'lastName', 'amount', 'memo', 'date', 'moderator'],
|
fieldsTable: ['email', 'firstName', 'lastName', 'amount', 'memo', 'date', 'moderator'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user