mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove more email
This commit is contained in:
parent
f4017311b5
commit
d3a095fb1c
@ -12,14 +12,6 @@ describe('UserCard_FormUserMail', () => {
|
|||||||
|
|
||||||
const mocks = {
|
const mocks = {
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
$store: {
|
|
||||||
state: {
|
|
||||||
email: 'user@example.org',
|
|
||||||
firstName: 'Peter',
|
|
||||||
lastName: 'Lustig',
|
|
||||||
description: '',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
$apollo: {
|
$apollo: {
|
||||||
mutate: mockAPIcall,
|
mutate: mockAPIcall,
|
||||||
},
|
},
|
||||||
@ -75,7 +67,6 @@ describe('UserCard_FormUserMail', () => {
|
|||||||
expect(mockAPIcall).toHaveBeenCalledWith(
|
expect(mockAPIcall).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
variables: {
|
variables: {
|
||||||
email: 'user@example.org',
|
|
||||||
newEmail: 'test@example.org',
|
newEmail: 'test@example.org',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@ -104,7 +95,6 @@ describe('UserCard_FormUserMail', () => {
|
|||||||
expect(mockAPIcall).toHaveBeenCalledWith(
|
expect(mockAPIcall).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
variables: {
|
variables: {
|
||||||
email: 'user@example.org',
|
|
||||||
newEmail: 'test@example.org',
|
newEmail: 'test@example.org',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -24,10 +24,6 @@ describe('UserCard_FormUsername', () => {
|
|||||||
const mocks = {
|
const mocks = {
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
$store: {
|
$store: {
|
||||||
state: {
|
|
||||||
email: 'user@example.org',
|
|
||||||
username: '',
|
|
||||||
},
|
|
||||||
commit: storeCommitMock,
|
commit: storeCommitMock,
|
||||||
},
|
},
|
||||||
$toasted: {
|
$toasted: {
|
||||||
@ -109,7 +105,6 @@ describe('UserCard_FormUsername', () => {
|
|||||||
expect(mockAPIcall).toHaveBeenCalledWith(
|
expect(mockAPIcall).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
variables: {
|
variables: {
|
||||||
email: 'user@example.org',
|
|
||||||
username: 'username',
|
username: 'username',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@ -148,7 +143,6 @@ describe('UserCard_FormUsername', () => {
|
|||||||
expect(mockAPIcall).toHaveBeenCalledWith(
|
expect(mockAPIcall).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
variables: {
|
variables: {
|
||||||
email: 'user@example.org',
|
|
||||||
username: 'username',
|
username: 'username',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -21,10 +21,6 @@ describe('UserCard_Language', () => {
|
|||||||
const mocks = {
|
const mocks = {
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
$store: {
|
$store: {
|
||||||
state: {
|
|
||||||
language: 'de',
|
|
||||||
email: 'peter@lustig.de',
|
|
||||||
},
|
|
||||||
commit: storeCommitMock,
|
commit: storeCommitMock,
|
||||||
},
|
},
|
||||||
$toasted: {
|
$toasted: {
|
||||||
@ -127,7 +123,6 @@ describe('UserCard_Language', () => {
|
|||||||
expect(mockAPIcall).toBeCalledWith(
|
expect(mockAPIcall).toBeCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
variables: {
|
variables: {
|
||||||
email: 'peter@lustig.de',
|
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user