2023-09-06 16:23:53 -03:00
|
|
|
declare global {
|
|
|
|
// eslint-disable-next-line no-var
|
|
|
|
var testEmails: {
|
2023-10-02 07:51:04 -03:00
|
|
|
icalEvent?: {
|
|
|
|
filename: string;
|
|
|
|
content: string;
|
|
|
|
};
|
2023-09-06 16:23:53 -03:00
|
|
|
to: string;
|
|
|
|
from: string;
|
|
|
|
subject: string;
|
|
|
|
html: string;
|
|
|
|
}[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export const setTestEmail = (email: (typeof globalThis.testEmails)[number]) => {
|
|
|
|
globalThis.testEmails = globalThis.testEmails || [];
|
|
|
|
globalThis.testEmails.push(email);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getTestEmails = () => {
|
|
|
|
return globalThis.testEmails;
|
|
|
|
};
|
2023-10-13 14:22:57 -03:00
|
|
|
|
|
|
|
export const resetTestEmails = () => {
|
|
|
|
globalThis.testEmails = [];
|
|
|
|
};
|