mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-22 20:51:29 +10:00
Jest mocks: added @reach/router and stub for Firebase auth signOut method
This commit is contained in:
@ -47,6 +47,15 @@ const expectDatabaseUpdateToHaveCompleted = async (
|
||||
);
|
||||
};
|
||||
|
||||
const dismissNotification = (notification) => {
|
||||
fireEvent.click(notification);
|
||||
};
|
||||
|
||||
const findAndDismissNotification = async () => {
|
||||
const notification = await screen.findByRole('alert');
|
||||
dismissNotification(notification);
|
||||
};
|
||||
|
||||
const dragAndDropDirectionUp = 'DND_DIRECTION_UP';
|
||||
const dragAndDropDirectionDown = 'DND_DIRECTION_DOWN';
|
||||
|
||||
@ -158,4 +167,6 @@ export {
|
||||
dragAndDropDirectionUp,
|
||||
dragAndDropDirectionDown,
|
||||
dragAndDropListItem,
|
||||
dismissNotification,
|
||||
findAndDismissNotification,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user