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,114 +6,80 @@ const localVue = global.localVue
|
|||||||
describe('UserTable', () => {
|
describe('UserTable', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
|
const defaultItemsUser = [
|
||||||
|
{
|
||||||
|
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],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
const confirmationItemsUser = [
|
||||||
|
{
|
||||||
|
email: 'bibi@bloxberg.de',
|
||||||
|
firstName: 'Bibi',
|
||||||
|
lastName: 'Bloxberg',
|
||||||
|
amount: 10,
|
||||||
|
memo: 'Test 1',
|
||||||
|
date: '11-09-2001',
|
||||||
|
moderator: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
email: 'bibi@bloxberg.de',
|
||||||
|
firstName: 'Bibi',
|
||||||
|
lastName: 'Bloxberg',
|
||||||
|
amount: 10,
|
||||||
|
memo: 'Test 2',
|
||||||
|
date: '21-09-2001',
|
||||||
|
moderator: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
email: 'bibi@bloxberg.de',
|
||||||
|
firstName: 'Bibi',
|
||||||
|
lastName: 'Bloxberg',
|
||||||
|
amount: 10,
|
||||||
|
memo: 'Test 3',
|
||||||
|
date: '30-09-2001',
|
||||||
|
moderator: 1,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
const propsDataPageUserSearch = {
|
const propsDataPageUserSearch = {
|
||||||
type: 'PageUserSearch',
|
type: 'PageUserSearch',
|
||||||
itemsUser: [
|
itemsUser: defaultItemsUser,
|
||||||
{
|
|
||||||
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'],
|
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
||||||
}
|
}
|
||||||
|
|
||||||
const propsDataUserListSearch = {
|
const propsDataUserListSearch = {
|
||||||
type: 'UserListSearch',
|
type: 'UserListSearch',
|
||||||
itemsUser: [
|
itemsUser: defaultItemsUser,
|
||||||
{
|
|
||||||
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'],
|
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
||||||
creation: [1000, 1000, 1000],
|
creation: [1000, 1000, 1000],
|
||||||
}
|
}
|
||||||
|
|
||||||
const propsDataUserListMassCreation = {
|
const propsDataUserListMassCreation = {
|
||||||
type: 'UserListMassCreation',
|
type: 'UserListMassCreation',
|
||||||
itemsUser: [
|
itemsUser: defaultItemsUser,
|
||||||
{
|
|
||||||
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'],
|
fieldsTable: ['email', 'firstName', 'lastName', 'creation'],
|
||||||
creation: [1000, 1000, 1000],
|
creation: [1000, 1000, 1000],
|
||||||
}
|
}
|
||||||
|
|
||||||
const propsDataPageCreationConfirm = {
|
const propsDataPageCreationConfirm = {
|
||||||
type: 'PageCreationConfirm',
|
type: 'PageCreationConfirm',
|
||||||
itemsUser: [
|
itemsUser: confirmationItemsUser,
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
amount: 10,
|
|
||||||
memo: 'Test 1',
|
|
||||||
date: '11-09-2001',
|
|
||||||
moderator: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
amount: 10,
|
|
||||||
memo: 'Test 2',
|
|
||||||
date: '21-09-2001',
|
|
||||||
moderator: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
email: 'bibi@bloxberg.de',
|
|
||||||
firstName: 'Bibi',
|
|
||||||
lastName: 'Bloxberg',
|
|
||||||
amount: 10,
|
|
||||||
memo: 'Test 3',
|
|
||||||
date: '30-09-2001',
|
|
||||||
moderator: 1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
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