mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 03:14:58 -04:00
Move setup/teardown out of tests
This commit is contained in:
committed by
Chris Hill-Scott
parent
435334ba9c
commit
0131f0c1b1
@@ -1,18 +1,9 @@
|
||||
beforeAll(() => {
|
||||
// set up jQuery
|
||||
window.jQuery = require('jquery');
|
||||
$ = window.jQuery;
|
||||
|
||||
// load module code
|
||||
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');
|
||||
require('../../app/assets/javascripts/autofocus.js');
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
window.jQuery = null;
|
||||
$ = null;
|
||||
|
||||
delete window.GOVUK;
|
||||
require('./support/teardown.js');
|
||||
});
|
||||
|
||||
describe('Autofocus', () => {
|
||||
|
||||
Reference in New Issue
Block a user