tests: Added source type to tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import {describe, it, expect, beforeEach, vi} from 'vitest';
|
import {describe, it, expect, beforeEach, vi} from 'vitest';
|
||||||
import {EmailStatus} from '@plunk/db';
|
import {EmailStatus, EmailSourceType} from '@plunk/db';
|
||||||
import {factories, getPrismaClient, createServiceMocks} from '../../../../../test/helpers';
|
import {factories, getPrismaClient, createServiceMocks} from '../../../../../test/helpers';
|
||||||
import type {Prisma} from '@plunk/db';
|
import type {Prisma} from '@plunk/db';
|
||||||
|
|
||||||
@@ -260,6 +260,7 @@ describe('Email Processor', () => {
|
|||||||
body: '<p>Test email with attachments</p>',
|
body: '<p>Test email with attachments</p>',
|
||||||
from: '[email protected]',
|
from: '[email protected]',
|
||||||
status: EmailStatus.PENDING,
|
status: EmailStatus.PENDING,
|
||||||
|
sourceType: EmailSourceType.TRANSACTIONAL,
|
||||||
attachments: [
|
attachments: [
|
||||||
{
|
{
|
||||||
filename: 'document.pdf',
|
filename: 'document.pdf',
|
||||||
@@ -302,6 +303,7 @@ describe('Email Processor', () => {
|
|||||||
body: '<p>Test</p>',
|
body: '<p>Test</p>',
|
||||||
from: '[email protected]',
|
from: '[email protected]',
|
||||||
status: EmailStatus.PENDING,
|
status: EmailStatus.PENDING,
|
||||||
|
sourceType: EmailSourceType.TRANSACTIONAL,
|
||||||
attachments: [
|
attachments: [
|
||||||
{filename: 'file.pdf', content: 'base64', contentType: 'application/pdf'},
|
{filename: 'file.pdf', content: 'base64', contentType: 'application/pdf'},
|
||||||
] as unknown as Prisma.InputJsonValue,
|
] as unknown as Prisma.InputJsonValue,
|
||||||
|
|||||||
Reference in New Issue
Block a user