2023-09-06 19:23:53 +00:00
|
|
|
declare global {
|
|
|
|
// eslint-disable-next-line no-var
|
|
|
|
var testEmails: {
|
2023-10-02 10:51:04 +00:00
|
|
|
icalEvent?: {
|
|
|
|
filename: string;
|
|
|
|
content: string;
|
|
|
|
};
|
2023-09-06 19:23:53 +00: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 17:22:57 +00:00
|
|
|
|
|
|
|
export const resetTestEmails = () => {
|
|
|
|
globalThis.testEmails = [];
|
|
|
|
};
|