mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Added test for code coverage
This commit is contained in:
@@ -94,4 +94,10 @@ describe('The session timer ', () => {
|
||||
|
||||
expect(closeTimerMock).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test('checkTimer is called', () => {
|
||||
const checkTimerMock = jest.spyOn(window.GOVUK.Modules.TimeoutPopup, "checkTimer");
|
||||
window.GOVUK.Modules.TimeoutPopup.checkTimer();
|
||||
expect(checkTimerMock).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user