mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 13:58:25 -04:00
Added test for code coverage
This commit is contained in:
@@ -94,4 +94,10 @@ describe('The session timer ', () => {
|
|||||||
|
|
||||||
expect(closeTimerMock).toHaveBeenCalled();
|
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