mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
21 lines
526 B
TypeScript
21 lines
526 B
TypeScript
import { User } from '@db/entities/User';
|
|
import { CredentialsEntity } from '@db/entities/CredentialsEntity';
|
|
|
|
import {
|
|
randomCredentialPayload,
|
|
randomEmail,
|
|
randomInteger,
|
|
randomName,
|
|
} from '../../integration/shared/random';
|
|
|
|
export const mockCredential = (): CredentialsEntity =>
|
|
Object.assign(new CredentialsEntity(), randomCredentialPayload());
|
|
|
|
export const mockUser = (): User =>
|
|
Object.assign(new User(), {
|
|
id: randomInteger(),
|
|
email: randomEmail(),
|
|
firstName: randomName(),
|
|
lastName: randomName(),
|
|
});
|