mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Move setup/teardown out of tests
This commit is contained in:
committed by
Chris Hill-Scott
parent
435334ba9c
commit
0131f0c1b1
6
tests/javascripts/support/setup.js
Normal file
6
tests/javascripts/support/setup.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// set up jQuery
|
||||
window.jQuery = require('jquery');
|
||||
$ = window.jQuery;
|
||||
|
||||
// load module code
|
||||
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');
|
||||
4
tests/javascripts/support/teardown.js
Normal file
4
tests/javascripts/support/teardown.js
Normal file
@@ -0,0 +1,4 @@
|
||||
window.jQuery = null;
|
||||
$ = null;
|
||||
|
||||
delete window.GOVUK;
|
||||
Reference in New Issue
Block a user