test: Integration tests for handleNewBooking (#11044)
Co-authored-by: Shivam Kalra <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
17 files changed
+1526
-441
No files matched your search
@@ -0,0 +1,18 @@
|
||||
declare global {
|
||||
// eslint-disable-next-line no-var
|
||||
var testEmails: {
|
||||
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;
|
||||
};
|
||||
Reference in new issue
Block a user