mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 03:14:58 -04:00
Test updates - still need more coverage
This commit is contained in:
@@ -7,5 +7,11 @@ require('./polyfills.js');
|
||||
// Set up jQuery
|
||||
global.$ = global.jQuery = require('jquery');
|
||||
|
||||
// tests/jest.setup.js
|
||||
global.io = jest.fn().mockReturnValue({
|
||||
on: jest.fn(),
|
||||
emit: jest.fn()
|
||||
});
|
||||
|
||||
// Load module code
|
||||
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');
|
||||
|
||||
Reference in New Issue
Block a user