mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 05:30:21 -04:00
Refactor code/initial tests
This commit is contained in:
18
tests/javascripts/timeoutPopup.test.js
Normal file
18
tests/javascripts/timeoutPopup.test.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const timeoutPopup = require('../../app/assets/javascripts/timeoutPopup.js');
|
||||
|
||||
|
||||
describe('Test popup process', () => {
|
||||
beforeEach(() => {
|
||||
jest.useFakeTimers();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
jest.useRealTimers();
|
||||
});
|
||||
|
||||
it('Test timers work', () => {
|
||||
jest.runAllTimers();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user