Refactor code/initial tests

This commit is contained in:
Andrew Shumway
2023-09-13 12:44:40 -06:00
parent c6e356c315
commit f257a38084
3 changed files with 22 additions and 49 deletions

View 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();
});
});