mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-23 17:02:01 -04:00
Update tests to use most recent jest and supporting libraries
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const each = require('jest-each').default;
|
||||
const jestDateMock = require('jest-date-mock');
|
||||
|
||||
const helpers = require('./support/helpers.js');
|
||||
|
||||
@@ -22,7 +21,7 @@ beforeAll(() => {
|
||||
jqueryAJAXReturnObj = {
|
||||
done: callback => {
|
||||
// The server takes 1 second to respond
|
||||
jestDateMock.advanceBy(1000);
|
||||
jest.advanceTimersByTime(1000);
|
||||
callback(responseObj);
|
||||
return jqueryAJAXReturnObj;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user