mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 19:34:15 -05:00
20 lines
359 B
JavaScript
20 lines
359 B
JavaScript
const sessionTimerWrapper = require('../../app/assets/javascripts/timeoutPopup.js');
|
|
|
|
|
|
describe('Test popup process', () => {
|
|
beforeEach(() => {
|
|
jest.useFakeTimers();
|
|
});
|
|
|
|
afterEach(() => {
|
|
jest.useRealTimers();
|
|
});
|
|
|
|
it('Test timers work', () => {
|
|
jest.runAllTimers();
|
|
sessionTimerWrapper();
|
|
});
|
|
|
|
});
|
|
|