adminbereich, übersicht, usersuche, schöpfen, schöpfung bestätigen

This commit is contained in:
ogerly 2021-11-22 14:55:51 +01:00
parent 9c02869ea0
commit 5089152be7
3 changed files with 31 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { mount } from '@vue/test-utils'
import CreationFormular from './CreationFormular.vue'
const localVue = global.localVue
<<<<<<< HEAD
const mocks = {
$moment: jest.fn(() => {
@ -22,6 +23,14 @@ const propsData = {
creation: {},
itemsMassCreation: {},
}
=======
const propsData = {
type: 'STRING',
creation: [100, 500, 1000],
itemUser: [],
}
const mocks = { $moment: jest.fn() }
>>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
describe('CreationFormular', () => {
let wrapper

View File

@ -6,7 +6,11 @@ const localVue = global.localVue
const mocks = {
$store: {
state: {
<<<<<<< HEAD
openCreations: 1,
=======
openCreations: 0,
>>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
},
},
}
@ -15,7 +19,11 @@ describe('NavBar', () => {
let wrapper
const Wrapper = () => {
<<<<<<< HEAD
return mount(NavBar, { localVue, mocks })
=======
return mount(NavBar, { mocks, localVue })
>>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
}
describe('mount', () => {

View File

@ -7,10 +7,24 @@ describe('UserTable', () => {
let wrapper
const propsData = {
<<<<<<< HEAD
type: 'Type',
itemsUser: [],
fieldsTable: [],
creation: {},
=======
type: 'TableName',
itemUser: [
{
id: 1,
email: 'dickerson@web.de',
first_name: 'Dickerson',
last_name: 'Macdonald',
creation: '450,200,700',
},
],
creation: [null, null, null],
>>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
}
const Wrapper = () => {